summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2018-07-29 19:02:23 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-04 08:40:02 +0700
commit1d2e55de58ac2f6644fa97d67e2810dd9a312023 (patch)
treea50dec9f97029a3f1d889f9e1f4fbb4f90fa8543
parent43e15eb98432ce4d63d66db3667bdaaff5bc6bdf (diff)
downloadslackbuilds-1d2e55de58ac2f6644fa97d67e2810dd9a312023.tar.gz
slackbuilds-1d2e55de58ac2f6644fa97d67e2810dd9a312023.tar.xz
games/fortune-starwars: Added (Star Wars fortune file).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--games/fortune-starwars/README17
-rw-r--r--games/fortune-starwars/fortune-starwars.SlackBuild50
-rw-r--r--games/fortune-starwars/fortune-starwars.info10
-rw-r--r--games/fortune-starwars/slack-desc19
4 files changed, 96 insertions, 0 deletions
diff --git a/games/fortune-starwars/README b/games/fortune-starwars/README
new file mode 100644
index 0000000000..398e6fc3af
--- /dev/null
+++ b/games/fortune-starwars/README
@@ -0,0 +1,17 @@
+fortune-starwars (Star Wars fortune file)
+
+fortune-starwars is a collection of quotes from the movies "Star Wars",
+"The Empire Strikes Back", and "Return Of The Jedi". It is meant for
+use with the fortune program. It does not contain quotes from Episodes
+One to Three, because the author doesn't really like them.
+
+To see a Star Wars fortune, type: fortune starwars
+
+To add Star Wars fortunes to the random login fortunes, edit
+/etc/profile.d/bsd-games-login-fortune.sh and add "starwars" to the list
+in the "fortune" command. The result should look like:
+
+ fortune fortunes fortunes2 linuxcookie starwars
+
+...and may also contain other fortune files installed by other packages
+such as fortune_firefly or fortune_dune.
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}
diff --git a/games/fortune-starwars/fortune-starwars.info b/games/fortune-starwars/fortune-starwars.info
new file mode 100644
index 0000000000..67f1dccca9
--- /dev/null
+++ b/games/fortune-starwars/fortune-starwars.info
@@ -0,0 +1,10 @@
+PRGNAM="fortune-starwars"
+VERSION="20051125"
+HOMEPAGE="https://www.splitbrain.org/projects/fortunes/starwars"
+DOWNLOAD="https://www.splitbrain.org/_media/projects/fortunes/fortune-starwars.tgz"
+MD5SUM="2f4443470a5d7bcb7c5efde501f8e6f5"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/games/fortune-starwars/slack-desc b/games/fortune-starwars/slack-desc
new file mode 100644
index 0000000000..d3e7ae5047
--- /dev/null
+++ b/games/fortune-starwars/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+fortune-starwars: fortune-starwars (Star Wars fortune file)
+fortune-starwars:
+fortune-starwars: fortune-starwars is a collection of quotes from the movies "Star
+fortune-starwars: Wars", "The Empire Strikes Back", and "Return Of The Jedi". It is
+fortune-starwars: meant for use with the fortune program. It does not contain quotes
+fortune-starwars: from Episodes One to Three, because the author doesn't really
+fortune-starwars: like them.
+fortune-starwars:
+fortune-starwars:
+fortune-starwars:
+fortune-starwars: