summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2015-01-30 14:29:45 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-01-31 06:58:02 +0700
commit20541280d04cb0bd1cf105217fccc24216b3ff15 (patch)
tree5b8ec5a1f2353576758fd1355f5a98cd0aad8757 /games
parent4f40a4c78945796b598a3e4c5583f40b68a3e4f4 (diff)
downloadslackbuilds-20541280d04cb0bd1cf105217fccc24216b3ff15.tar.gz
games/pokerth: copyright year + cleanup
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/pokerth/pokerth.SlackBuild21
1 files changed, 14 insertions, 7 deletions
diff --git a/games/pokerth/pokerth.SlackBuild b/games/pokerth/pokerth.SlackBuild
index d247a63be9..5412cb9fbe 100644
--- a/games/pokerth/pokerth.SlackBuild
+++ b/games/pokerth/pokerth.SlackBuild
@@ -1,7 +1,8 @@
#!/bin/sh
-# SlackBuild script for "PokerTH".
-# Copyright 2009-2014 Marcel Saegebarth <marc@mos6581.de>
+# Slackware build script for "pokerth".
+
+# Copyright 2009-2015 Marcel Saegebarth <marc@mos6581.de>
# Copyright 2012 Laurent Nardou <l.nardou@wanadoo.fr>
# All rights reserved.
#
@@ -44,11 +45,17 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -64,7 +71,7 @@ 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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# The headers to which this file points have moved in the newer libircclient...
# Thanks ponce.
@@ -83,7 +90,7 @@ cp -a COPYING INSTALL TODO ChangeLog \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir $PKG/install
+mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh