summaryrefslogtreecommitdiffstats
path: root/games/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'games/pacman')
-rw-r--r--games/pacman/README3
-rw-r--r--games/pacman/pacman.SlackBuild20
-rw-r--r--games/pacman/pacman.info2
3 files changed, 16 insertions, 9 deletions
diff --git a/games/pacman/README b/games/pacman/README
index 541caa84c9..ed122646e9 100644
--- a/games/pacman/README
+++ b/games/pacman/README
@@ -1,6 +1,3 @@
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 ae5be6855b..8bcaae7a52 100644
--- a/games/pacman/pacman.SlackBuild
+++ b/games/pacman/pacman.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for pacman
# Copyright 2018 Azure Zanculmarktum <zanculmarktum@gmail.com>
-# Copyright 2018 B. Watson <yalhcru@gmail.com>
+# Copyright 2018 B. Watson <urchlay@slackware.uk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -32,10 +32,13 @@
# 20180924 azure:
# - add NUMJOBS on 'make'.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=pacman
VERSION=${VERSION:-0.9}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -45,7 +48,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -94,7 +104,7 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
-make $NUMJOBS
+make
make install-strip DESTDIR=$PKG UPDATE_DESKTOP=echo
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -106,4 +116,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/games/pacman/pacman.info b/games/pacman/pacman.info
index fb0169e418..f4e8329176 100644
--- a/games/pacman/pacman.info
+++ b/games/pacman/pacman.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/ebuc99/pacman/archive/v0.9/pacman-0.9.tar.gz"
MD5SUM="5849fe31f76e47e1117da856593be3af"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="SDL2 SDL2_image SDL2_ttf SDL2_mixer"
+REQUIRES=""
MAINTAINER="Azure Zanculmarktum"
EMAIL="zanculmarktum@gmail.com"