2021-07-03 19:48:15 +02:00
|
|
|
#!/bin/bash
|
2020-05-02 12:32:08 +02:00
|
|
|
|
|
|
|
# Slackware build script for powerslave_demo_data
|
|
|
|
|
|
|
|
# Written by B. Watson (yalhcru@gmail.com)
|
|
|
|
|
|
|
|
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
|
|
|
|
|
|
|
# Supposedly, pcexhumed can play 2 variants of this game: "Exhumed"
|
|
|
|
# and "PowerSlave". But I can't get Exhumed to work.
|
|
|
|
|
|
|
|
# VERSION is the date of the newest file in the zip (PS.EXE)
|
|
|
|
|
2021-07-04 11:41:06 +02:00
|
|
|
cd $(dirname $0) ; CWD=$(pwd)
|
|
|
|
|
2020-05-02 12:32:08 +02:00
|
|
|
PRGNAM=powerslave_demo_data
|
|
|
|
VERSION=${VERSION:-19961212}
|
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
TAG=${TAG:-_SBo}
|
2021-07-04 12:23:38 +02:00
|
|
|
PKGTYPE=${PKGTYPE:-tgz}
|
2020-05-02 12:32:08 +02:00
|
|
|
ARCH=noarch
|
|
|
|
SRCNAM=pwrslave
|
|
|
|
|
2021-07-04 12:23:38 +02:00
|
|
|
# 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
|
|
|
|
fi
|
|
|
|
|
2020-05-02 12:32:08 +02:00
|
|
|
TMP=${TMP:-/tmp/SBo}
|
|
|
|
PKG=$TMP/package-$PRGNAM
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rm -rf $PKG
|
|
|
|
mkdir -p $TMP $PKG $OUTPUT
|
|
|
|
cd $TMP
|
|
|
|
rm -rf $PRGNAM-$VERSION
|
|
|
|
mkdir -p $PRGNAM-$VERSION
|
|
|
|
cd $PRGNAM-$VERSION
|
|
|
|
unzip $CWD/$SRCNAM.zip
|
|
|
|
chown -R root:root .
|
|
|
|
chmod 644 *
|
|
|
|
|
|
|
|
GAMEDIR=$PKG/usr/share/games/pcexhumed
|
|
|
|
mkdir -p $GAMEDIR
|
|
|
|
cp -a STUFF.DAT DEMO.VCR BOOK.MOV $GAMEDIR
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
cp -a README.TXT $PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|
|
|
|
|
|
|
mkdir -p $PKG/install
|
|
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
|
|
|
|
cd $PKG
|
2021-07-04 12:23:38 +02:00
|
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|