summaryrefslogtreecommitdiff
path: root/games/fortune-starwars/fortune-starwars.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-07-29 19:02:23 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-04 08:40:02 +0700
commit1d2e55de58ac2f6644fa97d67e2810dd9a312023 (patch)
treea50dec9f97029a3f1d889f9e1f4fbb4f90fa8543 /games/fortune-starwars/fortune-starwars.SlackBuild
parent43e15eb98432ce4d63d66db3667bdaaff5bc6bdf (diff)
downloadslackbuilds-1d2e55de58ac2f6644fa97d67e2810dd9a312023.tar.gz
games/fortune-starwars: Added (Star Wars fortune file).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/fortune-starwars/fortune-starwars.SlackBuild')
-rw-r--r--games/fortune-starwars/fortune-starwars.SlackBuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/games/fortune-starwars/fortune-starwars.SlackBuild b/games/fortune-starwars/fortune-starwars.SlackBuild
new file mode 100644
index 0000000000..099bee62e3
--- /dev/null
+++ b/games/fortune-starwars/fortune-starwars.SlackBuild
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# Slackware build script for fortune-starwars
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# VERSION is the timestamp on the tarball.
+
+PRGNAM=fortune-starwars
+VERSION=${VERSION:-20051125}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+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
+tar xvf $CWD/$PRGNAM.tgz
+cd $PRGNAM
+chown -R root:root .
+chmod 644 *
+
+# Don't trust shipped .dat file, it's easy enough to generate our own anyway.
+rm -f starwars.dat
+strfile starwars
+
+mkdir -p $PKG/usr/share/games/fortunes
+cp -a starwars starwars.dat $PKG/usr/share/games/fortunes
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
+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
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}