diff options
author | B. Watson <yalhcru@gmail.com> | 2014-05-03 03:12:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-05-03 03:12:23 +0700 |
commit | 74a6b3a65e09e3face6db5b6fbfb493579b8222e (patch) | |
tree | 01a75d1be6de6cd08302d627da47fe2eca89717d /games/koules/koules.SlackBuild | |
parent | 3c518f602bc09900a39f17c4bfacebe1694d3dd0 (diff) |
games/koules: Use ALSA instead of OSS.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/koules/koules.SlackBuild')
-rw-r--r-- | games/koules/koules.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/games/koules/koules.SlackBuild b/games/koules/koules.SlackBuild index a4326fecc3b2c..eb654a596071f 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 |