diff options
Diffstat (limited to 'games/puzzles/puzzles.SlackBuild')
-rw-r--r-- | games/puzzles/puzzles.SlackBuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/games/puzzles/puzzles.SlackBuild b/games/puzzles/puzzles.SlackBuild index 49dbd8f6a9a6d..0ed22e8ab80e1 100644 --- a/games/puzzles/puzzles.SlackBuild +++ b/games/puzzles/puzzles.SlackBuild @@ -4,7 +4,7 @@ # Written by Steve Pledger <spledger91@yahoo.com> PRGNAM=puzzles -VERSION=${VERSION:-r9660} +VERSION=${VERSION:-r10060} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,11 +44,13 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION 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 {} \; +find -L . \ + \( -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 {} \; + +ln -s Makefile.gtk Makefile CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -57,12 +59,16 @@ make mkdir -p $PKG/usr/games make install prefix=/usr DESTDIR=$PKG +# Rename binaries overlapping with other stuff +( cd $PKG/usr/games + for i in blackbox net untangle; do mv $i $i.puzzle ; done ) + 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 \ - HACKING LICENCE README \ + CHECKLST.txt LICENCE README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |