diff options
Diffstat (limited to 'games/colem/colem.SlackBuild')
-rw-r--r-- | games/colem/colem.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/games/colem/colem.SlackBuild b/games/colem/colem.SlackBuild index 9ecb7fb846..59c8f932a6 100644 --- a/games/colem/colem.SlackBuild +++ b/games/colem/colem.SlackBuild @@ -1,11 +1,13 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for colem -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211004 bkw: updated for 5.6. +# 20210220 bkw: updated for 5.5. # 20201026 bkw: # - updated for 5.4. # - make the slack-desc say whether or not the ROM is included. @@ -62,10 +64,13 @@ # + run "aoss colem" to get audio working on a stock Slack 14.1 system # with OSS modules disabled by default. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=colem -VERSION=${VERSION:-5.4} +VERSION=${VERSION:-5.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -75,7 +80,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -119,7 +128,7 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -sed -i "s/-O2/$SLKCFLAGS/" EMULib/Rules.gcc +sed -i "s/-O2/$SLKCFLAGS -fcommon/" EMULib/Rules.gcc # Make the emulator look in /usr/share/colem and ~/.colem for the # system ROMs, as well as the current directory. Without this, it's @@ -222,4 +231,4 @@ sed "s,@INCLUDES@,$INCLUDES," $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 |