summaryrefslogtreecommitdiffstats
path: root/games/ds-models/ds-models.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/ds-models/ds-models.SlackBuild')
-rw-r--r--games/ds-models/ds-models.SlackBuild48
1 files changed, 30 insertions, 18 deletions
diff --git a/games/ds-models/ds-models.SlackBuild b/games/ds-models/ds-models.SlackBuild
index 2b6ce3ca2b..c5da9ad9b4 100644
--- a/games/ds-models/ds-models.SlackBuild
+++ b/games/ds-models/ds-models.SlackBuild
@@ -1,37 +1,52 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ds-models
-# 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.
+# Note to self: find and package a decent model pack that works
+# properly with current gzdoom versions. If such a thing exists.
+# Initial searching and testing indicates maybe not...
+
+# 20211103 bkw: BUILD=4
+# - fix script being installed to nonexistant /usr/games.
+# - remove gzdoom support, since neither gzdoom nor gzdoom-legacy
+# works with these models.
+
+# 20160810 bkw:
+# - bump BUILD because:
+# - install scripts in /usr/games, not /usr/bin
+
# 20140324 bkw:
# Updated for version r15
# fixed typos in README
# fixed .def files for recent gzdoom
-# 20160810 bkw:
-# - bump BUILD because:
-# - install scripts in /usr/games, not /usr/bin
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ds-models
VERSION=${VERSION:-r15}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+ARCH=noarch
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-ARCH=noarch
-
# Which game(s) to support?
# As of r15, Zandronum is also supported, but as there's no SBo build for
# it, I won't bother.
-SKULLTAG=${SKULLTAG:-yes}
-GZDOOM=${GZDOOM:-yes}
+SKULLTAG=yes
+GZDOOM=no
if [ "$SKULLTAG" != "yes" -a "$GZDOOM" != "yes" ]; then
echo "You've set both SKULLTAG=no and GZDOOM=no; nothing to package."
@@ -41,17 +56,14 @@ fi
set -e
rm -rf $PKG
-mkdir -p $TMP $PKG/usr/{share/games/doom,bin,doc/$PRGNAM-$VERSION} $OUTPUT
+mkdir -p $TMP $PKG/usr/{share/games/doom,games,doc/$PRGNAM-$VERSION} $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
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 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 {} \+
# The only script provided upstream is for skulltag + gzdoom in one pk3, which
# will only work with skulltag. So we build our own individual skulltag and
@@ -130,4 +142,4 @@ mkdir -p $PKG/install
sed "s/@GAME@/$GAME/" $CWD/slack-desc > $PKG/install/slack-desc
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