diff options
Diffstat (limited to 'desktop/obkey/obkey.SlackBuild')
-rw-r--r-- | desktop/obkey/obkey.SlackBuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/desktop/obkey/obkey.SlackBuild b/desktop/obkey/obkey.SlackBuild index e5f85cf224..ca8b5a1723 100644 --- a/desktop/obkey/obkey.SlackBuild +++ b/desktop/obkey/obkey.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for obkey. # -# Copyright 2015-2016 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=obkey -VERSION=${VERSION:-1.0} -BUILD=${BUILD:-3} +VERSION=${VERSION:-20170611} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -54,13 +54,16 @@ else LIBDIRSUFFIX="" fi +SRCVER=${SRCVER:-3b3bbdc9b8d82b3982356d1c9e4c000e808625fb} + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || tar xvf $CWD/$SRCVER.tar.gz +mv $PRGNAM-$SRCVER $PRGNAM-$VERSION cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,13 +72,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG +python setup.py install --root=$PKG --optimize=1 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING NEWS $PKG/usr/doc/$PRGNAM-$VERSION +cp COPYING NEWS README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |