diff options
Diffstat (limited to 'system/swatch/swatch.SlackBuild')
-rw-r--r-- | system/swatch/swatch.SlackBuild | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/system/swatch/swatch.SlackBuild b/system/swatch/swatch.SlackBuild index bd6cacea13..d8831e782c 100644 --- a/system/swatch/swatch.SlackBuild +++ b/system/swatch/swatch.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for swatch -# Copyright 2012 Willy Sudiarto Raharjo <willysr@slackware-id.org> +# Copyright 2012-2015 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=swatch -VERSION=${VERSION:-3.2.3} +SRCNAM=swatchdog +VERSION=${VERSION:-3.2.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,22 +60,22 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$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 \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -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 {} \; perl Makefile.PL \ PREFIX=/usr \ INSTALLDIRS=vendor \ + INSTALLVENDORMAN1DIR=/usr/man/man1 \ INSTALLVENDORMAN3DIR=/usr/man/man3 make -make test make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -87,10 +88,14 @@ find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f find $PKG -depth -type d -empty -delete || true +# create symlink so that applications depending on this package will not be broken +( + cd $PKG/usr/bin + ln -s $SRCNAM $PRGNAM +) + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - CHANGES COPYING COPYRIGHT INSTALL KNOWN_BUGS MANIFEST README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES COPYING COPYRIGHT INSTALL KNOWN_BUGS MANIFEST README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |