diff options
Diffstat (limited to 'games/colem/colem.SlackBuild')
-rw-r--r-- | games/colem/colem.SlackBuild | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/games/colem/colem.SlackBuild b/games/colem/colem.SlackBuild index e6d89d3554..59c8f932a6 100644 --- a/games/colem/colem.SlackBuild +++ b/games/colem/colem.SlackBuild @@ -1,11 +1,19 @@ -#!/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. +# - update the man page with new options in 5.4. + +# 20191202 bkw: updated for 4.8. # 20180619 bkw: updated for 4.6. # 20171218 bkw: updated for 4.2. @@ -56,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:-4.6} +VERSION=${VERSION:-5.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -69,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} @@ -110,13 +125,10 @@ mkdir $PRGNAM-$VERSION cd $PRGNAM-$VERSION unzip -aa $CWD/$ZIPNAME$ZIPVER-Source.zip 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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +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 @@ -202,7 +214,10 @@ for i in coleco.rom COLECO.ROM os7.rom OS7.ROM; do done # If we found a ROM image, include it in the package. -[ -n "$ROM" ] && cat $ROM > $PKG/usr/share/$PRGNAM/coleco.rom +INCLUDES="does NOT include" +[ -n "$ROM" ] && \ + cat $ROM > $PKG/usr/share/$PRGNAM/coleco.rom && \ + INCLUDES="includes" mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -212,8 +227,8 @@ cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README cat ../$ZIPNAME.html > $PKG/usr/doc/$PRGNAM-$VERSION/$ZIPNAME.html mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc +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 |