aboutsummaryrefslogtreecommitdiff
path: root/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2010-05-13 00:22:23 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:22:23 +0200
commitfbce6b0e0fc64980a726de7741dc7aabe0439d4b (patch)
treeefae491d779c9a1e36e5c3b0d5bbc5f26555a6c0 /desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
parentd81b94dc24d0ca4a04fde9f907d0737e309a6776 (diff)
desktop/QtCurve-Gtk2: Updated for version 1.0.2
Diffstat (limited to 'desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild')
-rw-r--r--desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild43
1 files changed, 28 insertions, 15 deletions
diff --git a/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild b/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
index 066f0bbf62aea..887a03171a5b3 100644
--- a/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
+++ b/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
@@ -1,9 +1,9 @@
#!/bin/sh
# Slackware build script for QtCurve-Gtk2
-
# Written by bughunter2 (bughunter2@googlemail.com)
# Copyright 2008-2009 Michiel van Wessem, Manchester, United Kingdom
+# Copyright 2009 Gregory J. L. Tourte, UK (artourter@gmail.com)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=QtCurve-Gtk2
-VERSION=0.62.8
+VERSION=${VERSION:-1.0.2}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,17 +60,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Make QtCurve-Gtk2 default to reading the KDE3 settings as this is shipped
-# Slackware. Delete the line or set -DQTC_DEFAULT_TO_KDE3 to 'false'.
-cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DQTC_DEFAULT_TO_KDE3=true \
- .
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DQTC_DEFAULT_TO_KDE3=false \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DQTC_STYLE_SUPPORT=true \
+ ..
-make
-make install DESTDIR=$PKG
+ make
+ make install DESTDIR=$PKG
+cd -
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@@ -81,10 +86,18 @@ make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
-cp $CWD/slack-desc $PKG/install/slack-desc
+cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+
+# Clean up the extra stuff:
+if [ "$1" = "--cleanup" ]; then
+ rm -rf $TMP/$PRGNAM-$BASEVERS
+ rm -rf $PKG
+fi
+
+# vim: et ts=2