summaryrefslogtreecommitdiff
path: root/games/puzzles/puzzles.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-16 22:34:56 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2013-11-16 22:34:56 +0100
commit76888c89d82d91212b6a5f86d4c828b7861ff90a (patch)
treed36e57e0179e554c2d8886d35d15b310a52955a4 /games/puzzles/puzzles.SlackBuild
parent0b1e0656f46748c57718d3a597c4ac6840547a53 (diff)
downloadslackbuilds-76888c89d82d91212b6a5f86d4c828b7861ff90a.tar.gz
games/puzzles: Updated for subversion revision 10060.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/puzzles/puzzles.SlackBuild')
-rw-r--r--games/puzzles/puzzles.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/games/puzzles/puzzles.SlackBuild b/games/puzzles/puzzles.SlackBuild
index 49dbd8f6a9..0ed22e8ab8 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