aboutsummaryrefslogtreecommitdiff
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.SlackBuild35
1 files changed, 19 insertions, 16 deletions
diff --git a/games/ds-models/ds-models.SlackBuild b/games/ds-models/ds-models.SlackBuild
index 8e048ee7b67c..8426d2e603ff 100644
--- a/games/ds-models/ds-models.SlackBuild
+++ b/games/ds-models/ds-models.SlackBuild
@@ -6,26 +6,32 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
-# 20140324 bkw:
-# Updated for version r15
-# fixed typos in README
-# fixed .def files for recent gzdoom
+# 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
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ds-models
VERSION=${VERSION:-r15}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -40,8 +46,8 @@ 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."
@@ -51,17 +57,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