From 5a33fb48c1fd8eae765239f871d093a3fd5f9cc7 Mon Sep 17 00:00:00 2001 From: Azure Zanculmarktum Date: Thu, 27 Sep 2018 04:52:14 +0700 Subject: games/pacman: Updated script. Signed-off-by: Willy Sudiarto Raharjo --- games/pacman/README | 3 +++ games/pacman/pacman.SlackBuild | 24 ++++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) (limited to 'games') 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 +# Copyright 2018 B. Watson # 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 -- cgit v1.2.3