diff options
author | John Vogel <jvogel4@stny.rr.com> | 2014-08-04 07:34:31 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-04 07:34:31 +0700 |
commit | a0ec1d6105488a8676ed29121728ee3d7c42f823 (patch) | |
tree | 307f4538e175147806c14a4111b9650d7afb3102 /desktop/sxhkd/sxhkd.SlackBuild | |
parent | 6e5c04bb214bea3a8b4cdf03319835e5a7759135 (diff) | |
download | slackbuilds-a0ec1d6105488a8676ed29121728ee3d7c42f823.tar.gz |
desktop/sxhkd: Updated for version 0.5.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/sxhkd/sxhkd.SlackBuild')
-rw-r--r-- | desktop/sxhkd/sxhkd.SlackBuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/desktop/sxhkd/sxhkd.SlackBuild b/desktop/sxhkd/sxhkd.SlackBuild index bda640d010..0c2137d890 100644 --- a/desktop/sxhkd/sxhkd.SlackBuild +++ b/desktop/sxhkd/sxhkd.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for sxhkd -# Copyright 2013 John Vogel Corning, NY USA +# Copyright 2013-2014 John Vogel Corning, NY USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=sxhkd -VERSION=${VERSION:-0.5.3} +VERSION=${VERSION:-0.5.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,14 +60,19 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +if [ ! -f $CWD/$PRGNAM-$VERSION.tar.gz ]; then + if [ -f $CWD/$VERSION.tar.gz ]; then + mv $CWD/$VERSION.tar.gz $CWD/$PRGNAM-$VERSION.tar.gz + fi +fi +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -81,9 +86,7 @@ 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 \ - LICENSE doc/sxhkd.1.txt examples \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE doc/sxhkd.1.txt examples $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |