aboutsummaryrefslogtreecommitdiff
path: root/system/qstardict/qstardict.SlackBuild
diff options
context:
space:
mode:
authorgrissiom <chaos.proton@gmail.com>2010-05-11 22:55:27 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:55:27 +0200
commitf874af9a954561c3f20ec4cd2a7f034ee3eede95 (patch)
tree49477d7a941c29b7bf3049c25bdb45c8d0efa3e1 /system/qstardict/qstardict.SlackBuild
parent306708159913c8b42e107223b17cb548e14d5e33 (diff)
system/qstardict: Added to 12.1 repository
Diffstat (limited to 'system/qstardict/qstardict.SlackBuild')
-rw-r--r--system/qstardict/qstardict.SlackBuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/system/qstardict/qstardict.SlackBuild b/system/qstardict/qstardict.SlackBuild
new file mode 100644
index 0000000000000..886bb949de340
--- /dev/null
+++ b/system/qstardict/qstardict.SlackBuild
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# Slackware build script for qstardict
+
+# Written by grissiom chaos.proton@gmail.com
+
+PRGNAM=qstardict
+VERSION=${VERSION:-0.12.9}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+MAKEOPT="-s"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+qmake-qt4 \
+QMAKE_CXXFLAGS="$SLKCFLAGS"
+
+make $MAKEOPT
+make install INSTALL_ROOT=$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 ChangeLog COPYING INSTALL README THANKS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz