games/puzzles: Updated for subversion revision 10060.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2013-11-16 22:34:56 +01:00
parent 0b1e0656f4
commit 76888c89d8
2 changed files with 16 additions and 10 deletions

View file

@ -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

View file

@ -1,8 +1,8 @@
PRGNAM="puzzles"
VERSION="r9660"
VERSION="r10060"
HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/puzzles-r9660.tar.xz"
MD5SUM="9622a7284496914473cf708899abf87e"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/puzzles-r10060.tar.xz"
MD5SUM="10f83ca6989521b67cff56756805a5aa"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""