diff options
author | Bloyburt <alexpen@startmail.com> | 2022-10-19 22:47:10 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-19 22:47:23 +0700 |
commit | d97293868959d7813b6ade486dbbc9fcde4533ab (patch) | |
tree | 18e61af5de2d98c467f926884d190ac1e4a54ee9 /games/blasphemer/blasphemer.SlackBuild | |
parent | 07147931f63270ba62af9bd143ac99c9534b9d2a (diff) |
games/blasphemer: Added (Free content package for Heretic Engine).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/blasphemer/blasphemer.SlackBuild')
-rw-r--r-- | games/blasphemer/blasphemer.SlackBuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/games/blasphemer/blasphemer.SlackBuild b/games/blasphemer/blasphemer.SlackBuild new file mode 100644 index 0000000000000..2f35cf663054a --- /dev/null +++ b/games/blasphemer/blasphemer.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/bash + +# Slackware build script for blasphemer + +# Copyright 2022 Bloyburt +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=blasphemer +VERSION=${VERSION:-0.1.7} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +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 +fi + +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 $TMP/$PRGNAM-$VERSION + +mkdir -p $PKG/usr/share/games/doom $PKG/usr/doc/$PRGNAM-$VERSION + +unzip $CWD/blasphem-$VERSION.zip && unzip $CWD/blasphdm-$VERSION.zip +chown -R root:root . +chmod 644 * +mv blasphem-$VERSION.wad blasphem.wad +mv blasphdm-$VERSION.wad blasphdm.wad +cp *.wad $PKG/usr/share/games/doom +cd - + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |