aboutsummaryrefslogtreecommitdiff
path: root/games/steem/steem.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2011-02-20 00:32:48 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-02-28 09:42:04 -0600
commit2062bf16019ebbc0af74e2c58b6a574c418b3f0c (patch)
tree24ffc0ab529473ff5128cf75783d95a1d56f7193 /games/steem/steem.SlackBuild
parentb3ea517f6e6241be714fa669c3c564c0574ca1f5 (diff)
games/steem: Added (Freeware Atari STE Emulator)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/steem/steem.SlackBuild')
-rw-r--r--games/steem/steem.SlackBuild82
1 files changed, 82 insertions, 0 deletions
diff --git a/games/steem/steem.SlackBuild b/games/steem/steem.SlackBuild
new file mode 100644
index 000000000000..274b32609dd6
--- /dev/null
+++ b/games/steem/steem.SlackBuild
@@ -0,0 +1,82 @@
+#!/bin/bash
+
+# Slackware build script for xsteem
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=steem
+VERSION=${VERSION:-3.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+# Binary-only package, hard-coded ARCH
+ARCH=i486
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+SRCVER=${VERSION/./_}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+tar xvf $CWD/x${PRGNAM}_v${SRCVER}-${ARCH}.tar.gz
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -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 {} \;
+
+
+mkdir -p $PKG/usr/bin $PKG/usr/share/$PRGNAM/patches \
+ $PKG/usr/libexec $PKG/usr/share/$PRGNAM/tos \
+ $PKG/usr/man/man1 $PKG/usr/doc/$PRGNAM-$VERSION
+
+# binary's already stripped
+install -m0755 $PRGNAM $PKG/usr/libexec/$PRGNAM.bin
+install -m0755 $CWD/$PRGNAM.sh $PKG/usr/bin/$PRGNAM
+
+cp -r patches/* $PKG/usr/share/$PRGNAM/patches
+
+unzip -LL $CWD/tos_uk.zip
+if [ -e $CWD/tos_us.zip ]; then
+ unzip -LL $CWD/tos_us.zip
+fi
+
+cp tos*.img $PKG/usr/share/$PRGNAM/tos
+
+cp -a \
+ *.txt FAQ README win32.help $PRGNAM.new \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+
+# CRLF's suck..
+sed -i 's/\r//g' $PKG/usr/doc/$PRGNAM-$VERSION/*
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Man page created from the --help output
+gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+
+# pdf doc was created by running chm2pdf on the chm help downloaded from
+# the original site.
+xzcat $CWD/$PRGNAM.pdf.xz > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.pdf
+
+# icon converted from the windows icon using wrestool on steem.exe
+mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications
+cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}