summaryrefslogtreecommitdiff
path: root/games/fortune-farscape
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-12-28 09:13:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-28 09:13:15 +0700
commitdb42762ccfaf8f5ed7e86c46477ffc25cb155d28 (patch)
treee3f82d44f0fa9fd4dd6e116b693c25b6b558ae2f /games/fortune-farscape
parentb9aff395d3533150742bad2e281669fff96cf4f1 (diff)
downloadslackbuilds-db42762ccfaf8f5ed7e86c46477ffc25cb155d28.tar.gz
games/fortune-farscape: Added (Farscape quotes for fortune).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/fortune-farscape')
-rw-r--r--games/fortune-farscape/README18
-rw-r--r--games/fortune-farscape/fortune-farscape.SlackBuild44
-rw-r--r--games/fortune-farscape/fortune-farscape.info10
-rw-r--r--games/fortune-farscape/slack-desc19
4 files changed, 91 insertions, 0 deletions
diff --git a/games/fortune-farscape/README b/games/fortune-farscape/README
new file mode 100644
index 0000000000..acf64cd081
--- /dev/null
+++ b/games/fortune-farscape/README
@@ -0,0 +1,18 @@
+fortune-farscape (Farscape quotes for fortune)
+
+Farscape is a science-fiction TV series (1999-2004) about an astronaut who
+ends up on the other side of the galaxy after crashing into a wormhole
+during the test flight of his space module Farscape-1. Here he joins a
+group of escaping prisoners on board a living ship.
+
+This fortune file includes 392 quotes, from seasons 1-4 of the show and
+the Peacekeeper Wars miniseries. These were taken from:
+
+https://en.wikiquote.org/wiki/Farscape
+https://en.wikiquote.org/wiki/Farscape:_The_Peacekeeper_Wars
+
+...plus a few added by the SlackBuild author.
+
+After installing, use "fortune farscape" to see a Farscape quote. You
+can add farscape to the fortune command in bsd-games-login-fortune.sh,
+to see them on login.
diff --git a/games/fortune-farscape/fortune-farscape.SlackBuild b/games/fortune-farscape/fortune-farscape.SlackBuild
new file mode 100644
index 0000000000..ce16787d16
--- /dev/null
+++ b/games/fortune-farscape/fortune-farscape.SlackBuild
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# Slackware build script for fortune-farscape
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20191224 bkw: I'm my own upstream on this one. The fortune file was
+# made by scraping wikiquotes, then hand-massaging the data into the
+# format fortune(6) wants and fixing a few typos/etc. Also added a
+# few quotes from episodes that didn't have any quotes on wikiquote,
+# specifically "Beware of Dog", "Incubator", "I-Yensch, You-Yensch",
+# "Twice Shy".
+
+PRGNAM=fortune-farscape
+VERSION=${VERSION:-20191224}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+FDIR=$PKG/usr/share/games/fortunes
+rm -rf $PKG
+mkdir -p $TMP $FDIR $OUTPUT
+cd $FDIR
+xzcat $CWD/$PRGNAM-$VERSION.xz > farscape
+strfile farscape
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
+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-farscape/fortune-farscape.info b/games/fortune-farscape/fortune-farscape.info
new file mode 100644
index 0000000000..0a9aa7b12d
--- /dev/null
+++ b/games/fortune-farscape/fortune-farscape.info
@@ -0,0 +1,10 @@
+PRGNAM="fortune-farscape"
+VERSION="20191224"
+HOMEPAGE="https://en.wikiquote.org/wiki/Farscape"
+DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/fortune-farscape-20191224.xz"
+MD5SUM="9a70ede55e521efa61744ed5c618109d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/games/fortune-farscape/slack-desc b/games/fortune-farscape/slack-desc
new file mode 100644
index 0000000000..b0afdd85f3
--- /dev/null
+++ b/games/fortune-farscape/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-farscape: fortune-farscape (Farscape quotes for fortune)
+fortune-farscape:
+fortune-farscape: Farscape is a science-fiction TV series (1999-2004) about an astronaut
+fortune-farscape: who ends up on the other side of the galaxy after crashing into a
+fortune-farscape: wormhole during the test flight of his space module Farscape-1. Here
+fortune-farscape: he joins a group of escaping prisoners on board a living ship.
+fortune-farscape:
+fortune-farscape:
+fortune-farscape:
+fortune-farscape:
+fortune-farscape: