summaryrefslogtreecommitdiff
path: root/desktop/qlipper/qlipper.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-08-12 09:44:11 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 16:23:44 -0500
commit8c1e1cd347bb1ca07abdbc01d8e8e61acc0cf094 (patch)
treec07cf659c75e0011f777ede184d13b8ee5cc0412 /desktop/qlipper/qlipper.SlackBuild
parent353e14eb8603925cd4106a0abb31fe5cc1d6d7ec (diff)
downloadslackbuilds-8c1e1cd347bb1ca07abdbc01d8e8e61acc0cf094.tar.gz
desktop/qlipper: Updated for version 2.0.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/qlipper/qlipper.SlackBuild')
-rw-r--r--desktop/qlipper/qlipper.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/desktop/qlipper/qlipper.SlackBuild b/desktop/qlipper/qlipper.SlackBuild
index e4d09ec5fb..771649f778 100644
--- a/desktop/qlipper/qlipper.SlackBuild
+++ b/desktop/qlipper/qlipper.SlackBuild
@@ -4,7 +4,7 @@
# Written by ponce <matteo.bernardini@gmail.com>
PRGNAM=qlipper
-VERSION=${VERSION:-1.8.3}
+VERSION=${VERSION:-2.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -52,10 +52,16 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-qmake qlipper.pro PREFIX=/usr
-
-make
-make install INSTALL_ROOT=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true