summaryrefslogtreecommitdiff
path: root/games/koules/koules.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/koules/koules.SlackBuild')
-rw-r--r--games/koules/koules.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/games/koules/koules.SlackBuild b/games/koules/koules.SlackBuild
index a4326fecc3..eb654a5960 100644
--- a/games/koules/koules.SlackBuild
+++ b/games/koules/koules.SlackBuild
@@ -12,7 +12,7 @@
PRGNAM=koules
VERSION=${VERSION:-1.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,6 +63,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# 20140502 bkw: modern Slackware has OSS modules disabled by default,
+# so wrap the sound server in aoss.
+[ "${ALSA:-yes}" = "yes" ] && patch -p1 < $CWD/patches/aoss.diff
+
# sound server in /usr/libexec, game data in /usr/share/koules
# also, enable sound and joystick support.
patch -p1 < $CWD/patches/slackware.diff
@@ -92,7 +96,10 @@ find . -name Makefile | \
xargs sed -i -e "s/-O2.*/$SLKCFLAGS/"
touch xkoules.man
-make
+# 20140502 bkw:
+# parallel builds sometimes (usually) work, but not always. This is
+# small enough that nobody should get too impatient even with -j1.
+make -j1
# Don't trust 'make install', it doesn't fully support DESTDIR, and
# installs things with weird permissions. Again, Imake sucks.
@@ -116,7 +123,7 @@ mkdir -p $PKG/usr/man/man6
gzip -9c x$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp README TODO ANNOUNCE BUGS COPYING Card Koules.FAQ \
+cp -a README TODO ANNOUNCE BUGS COPYING Card Koules.FAQ \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo