summaryrefslogtreecommitdiff
path: root/games/transfusion/transfusion.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-12 23:29:36 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:29:36 +0200
commit56c4326324c43f741a5d88a441d772db5cd976bc (patch)
tree74d91a062f89e60ab46345685e20d4930e6d9034 /games/transfusion/transfusion.SlackBuild
parent58124800c44323a70de4c3d3803ab448c7290ff1 (diff)
downloadslackbuilds-56c4326324c43f741a5d88a441d772db5cd976bc.tar.gz
games/transfusion: Added to 12.2 repository
Diffstat (limited to 'games/transfusion/transfusion.SlackBuild')
-rw-r--r--games/transfusion/transfusion.SlackBuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/games/transfusion/transfusion.SlackBuild b/games/transfusion/transfusion.SlackBuild
new file mode 100644
index 0000000000..9861b790d3
--- /dev/null
+++ b/games/transfusion/transfusion.SlackBuild
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+# Slackware build script for transfusion
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# The game is distributed as a binary. This script just repackages
+# the binary into a nice Slack package.
+
+PRGNAM=transfusion
+VERSION=${VERSION:-1.05_beta2}
+SRCVER=$(echo $VERSION | sed 's/_/-/g')
+ARCH=i486 # possibly a fib, we dunno how the binary was compiled
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+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-$SRCVER
+unzip $CWD/$PRGNAM-$SRCVER.zip
+cd $PRGNAM-$SRCVER
+
+mkdir -p $PKG/usr/share/games/$PRGNAM-$VERSION/basetf
+cp basetf/* $PKG/usr/share/games/$PRGNAM-$VERSION/basetf
+
+mkdir -p $PKG/usr/libexec/$PRGNAM-$VERSION
+cp $PRGNAM-glx $PRGNAM-dedicated $PKG/usr/libexec/$PRGNAM-$VERSION
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Wrapper script: the game expects to find the basetf/ dir in the
+# current directory.
+mkdir -p $PKG/usr/bin
+sed "s/@VERSION@/$VERSION/g" < $CWD/$PRGNAM.in > $PKG/usr/bin/$PRGNAM-glx
+chmod 755 $PKG/usr/bin/$PRGNAM-glx
+( cd $PKG/usr/bin/ && ln -s $PRGNAM-glx $PRGNAM-dedicated )
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz