summaryrefslogtreecommitdiff
path: root/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
diff options
context:
space:
mode:
authorbughunter2 <bughunter2@googlemail.com>2010-05-11 20:00:02 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 20:00:02 +0200
commit9a120393ac504985ff47b279e6c382cd02e386fc (patch)
tree6f9bf453b38073b95e7357838c9a2c83dcbb6121 /desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
parentf00e8f73e090f921a8802b6b38101d459a8042b9 (diff)
downloadslackbuilds-9a120393ac504985ff47b279e6c382cd02e386fc.tar.gz
desktop/QtCurve-Gtk2: Added to 12.0 repository
Diffstat (limited to 'desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild')
-rw-r--r--desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild b/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
new file mode 100644
index 0000000000..8d04dba2ec
--- /dev/null
+++ b/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# Slackware build script for QtCurve-Gtk2
+# Written by bughunter2 (bughunter2@googlemail.com)
+
+PRGNAM=QtCurve-Gtk2
+VERSION=0.57.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG $TMP/$PRGNAM-$VERSION
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ .
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+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
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
+
+mkdir -p $PKG/install
+cp $CWD/slack-desc $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz