aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ed122646e985..541caa84c9ce 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 98b874ff8ae3..ae5be6855b90 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