summaryrefslogtreecommitdiffstats
path: root/games/hexen_demo_data/hexen_demo_data.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/hexen_demo_data/hexen_demo_data.SlackBuild')
-rw-r--r--games/hexen_demo_data/hexen_demo_data.SlackBuild20
1 files changed, 6 insertions, 14 deletions
diff --git a/games/hexen_demo_data/hexen_demo_data.SlackBuild b/games/hexen_demo_data/hexen_demo_data.SlackBuild
index 63d2b2ad48..b3d7c31b23 100644
--- a/games/hexen_demo_data/hexen_demo_data.SlackBuild
+++ b/games/hexen_demo_data/hexen_demo_data.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for hexen_demo_data
-# 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.
@@ -16,9 +16,6 @@ PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-# 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
@@ -36,13 +33,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-unzip $CWD/hexndemo.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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+unzip -a $CWD/hexndemo.zip '*.WAD' '*.TXT'
# Install as hexdemo.wad rather than hexen.wad. ZDoom will accept either,
# and this way we don't stomp on the hexen.wad from the full version of
@@ -50,9 +41,10 @@ find -L . \
mkdir -p $PKG/usr/share/games/doom
install -m0644 HEXEN.WAD $PKG/usr/share/games/doom/hexdemo.wad
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-sed 's/\r//' README.TXT > $PKG/usr/doc/$PRGNAM-$VERSION/README.txt
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cat README.TXT > $PKGDOC/README.txt
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc