mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
desktop/crystal: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
c04e680f16
commit
bdcb44f50c
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
#!/bin/sh
|
||||
|
||||
# SlackBuild script for crystal (A Native KDE4 Window decoration)
|
||||
|
@ -25,7 +26,7 @@
|
|||
|
||||
PRGNAM=crystal
|
||||
VERSION=${VERSION:-2.2.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -70,6 +71,7 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/crystal.patch
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
|
|
11
desktop/crystal/crystal.patch
Normal file
11
desktop/crystal/crystal.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- crystal-2.2.1/client/crystalclient.cpp.orig 2016-02-15 07:32:55.748512951 +0700
|
||||
+++ crystal-2.2.1//client/crystalclient.cpp 2016-02-15 07:33:14.018499876 +0700
|
||||
@@ -118,7 +118,7 @@
|
||||
if (isPreview()) {
|
||||
char c[512];
|
||||
QLabel *label;
|
||||
- sprintf(c,"<center><b>Crystal %s Preview</b><br>Built: %s</center>",VERSION, __DATE__);
|
||||
+ sprintf(c,"<center><b>Crystal %s Preview</b><br>Built: %s</center>",2.2, __DATE__);
|
||||
mainlayout->addItem(new QSpacerItem(1, 1,QSizePolicy::Expanding,QSizePolicy::Fixed), 0, 1);
|
||||
mainlayout->addItem(new QSpacerItem(1, ::factory->borderwidth,QSizePolicy::Expanding,QSizePolicy::Expanding), 3, 1);
|
||||
label = new QLabel(i18n(c), widget());
|
Loading…
Reference in a new issue