summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAzure Zanculmarktum <zanculmarktum@gmail.com>2018-09-27 04:52:14 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-29 07:47:41 +0700
commit5a33fb48c1fd8eae765239f871d093a3fd5f9cc7 (patch)
tree5377d541564506554e2b49e378d1f8921b3d38ca /games
parentd3cee6797811790c50df7cdc72b8fdcf81cb6398 (diff)
downloadslackbuilds-5a33fb48c1fd8eae765239f871d093a3fd5f9cc7.tar.gz
games/pacman: Updated script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/pacman/README3
-rw-r--r--games/pacman/pacman.SlackBuild24
2 files changed, 21 insertions, 6 deletions
diff --git a/games/pacman/README b/games/pacman/README
index ed122646e9..541caa84c9 100644
--- a/games/pacman/README
+++ b/games/pacman/README
@@ -1,3 +1,6 @@
This is a clone of the original pacman by Namco.
NOTE: this is NOT Arch Linux's pacman :^)
+
+If your CPU supports multithreading, you can pass NUMJOBS like so:
+ $ NUMJOBS="-j$(nproc)" ./pacman.SlackBuild
diff --git a/games/pacman/pacman.SlackBuild b/games/pacman/pacman.SlackBuild
index 98b874ff8a..ae5be6855b 100644
--- a/games/pacman/pacman.SlackBuild
+++ b/games/pacman/pacman.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for pacman
# Copyright 2018 Azure Zanculmarktum <zanculmarktum@gmail.com>
+# Copyright 2018 B. Watson <yalhcru@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,9 +23,18 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20180921 bkw:
+# - fix installDir sed.
+# - fix .desktop file.
+# - install binary in /usr/games.
+# - stop updating the system-wide desktop database on 'make install-strip'.
+
+# 20180924 azure:
+# - add NUMJOBS on 'make'.
+
PRGNAM=pacman
VERSION=${VERSION:-0.9}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -65,15 +75,17 @@ cd $PRGNAM-$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 \
+ -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 {} \;
-sed -i -e '/strcpy(installDir, "\/usr\//s@local/@@p' src/platform.cpp
+sed -i -e '/strcpy(installDir, "\/usr\//s@local/@@' src/platform.cpp
+sed -i -e '\,Icon=/usr/local,s,local/,,' $PRGNAM.desktop
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
+ --bindir=/usr/games \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -82,8 +94,8 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
-make
-make install-strip DESTDIR=$PKG
+make $NUMJOBS
+make install-strip DESTDIR=$PKG UPDATE_DESKTOP=echo
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION