summaryrefslogtreecommitdiff
path: root/desktop/kwalletcli/kwalletcli.SlackBuild
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2012-12-29 08:06:45 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-29 22:25:36 -0500
commitbc521f26d0b4ce79d73ce3a84be221e1d55ba7af (patch)
treebd328fd48fb3876a73d6ba47128ae13b1fadebe2 /desktop/kwalletcli/kwalletcli.SlackBuild
parentf895430098db5702f02dbf6ff027090bb7398850 (diff)
downloadslackbuilds-bc521f26d0b4ce79d73ce3a84be221e1d55ba7af.tar.gz
desktop/kwalletcli: Added (kwallet from the commandline)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/kwalletcli/kwalletcli.SlackBuild')
-rw-r--r--desktop/kwalletcli/kwalletcli.SlackBuild74
1 files changed, 74 insertions, 0 deletions
diff --git a/desktop/kwalletcli/kwalletcli.SlackBuild b/desktop/kwalletcli/kwalletcli.SlackBuild
new file mode 100644
index 0000000000..9616893284
--- /dev/null
+++ b/desktop/kwalletcli/kwalletcli.SlackBuild
@@ -0,0 +1,74 @@
+#!/bin/sh
+# Written by Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
+# Based on http://slackbuilds.org/template.SlackBuild
+
+PRGNAM=kwalletcli
+VERSION=${VERSION:-2.11}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $PKG $TMP $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xzf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM
+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 {} \;
+
+mkdir -p $PKG/usr/bin $PKG/usr/man/man1
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+make KDE_VER=4 KDE_INCS="-I /usr/lib$LIBDIRSUFFIX/qt/include/QtCore"
+make install MANDIR=/usr/man/man DESTDIR=$PKG
+
+find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+
+ find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ LICENCE \
+ $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.${PKGTYPE:-tgz}