diff options
Diffstat (limited to 'desktop/xdgurl/xdgurl.SlackBuild')
-rw-r--r-- | desktop/xdgurl/xdgurl.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/desktop/xdgurl/xdgurl.SlackBuild b/desktop/xdgurl/xdgurl.SlackBuild index 1dd82101f9..37d7b318e3 100644 --- a/desktop/xdgurl/xdgurl.SlackBuild +++ b/desktop/xdgurl/xdgurl.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for xdgurl. # -# Copyright 2016 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2016-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=xdgurl VERSION=${VERSION:-1.0.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -57,13 +57,15 @@ fi set -e SRCVER="release-$VERSION" +SRCNAM="ocs-url" rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$SRCVER tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz -cd $PRGNAM-$SRCVER +mv $SRCNAM-$SRCVER $PRGNAM-$VERSION +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -71,8 +73,8 @@ 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 {} \; -install -D -m 755 "src/$PRGNAM.py" "$PKG/usr/bin/$PRGNAM" -install -D -m 644 "src/$PRGNAM.desktop" "$PKG/usr/share/applications/$PRGNAM.desktop" +make +make DESTDIR=$PKG prefix=/usr install 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 |