aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-08-28 15:29:39 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-02 18:02:30 +0700
commitcd4cc5437a72cbe7df48d16f4f2875b4a2f8184c (patch)
tree9ceacf88d46c81ee236ce6b619e5091c3e5fe8e1 /games
parentf53b71896bbfbbe29441e2a418a2c87bb8e34019 (diff)
games/fortune_firefly: Updated for version 20230828bkw.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/fortune_firefly/README2
-rw-r--r--games/fortune_firefly/fortune_firefly.SlackBuild33
-rw-r--r--games/fortune_firefly/fortune_firefly.info8
3 files changed, 26 insertions, 17 deletions
diff --git a/games/fortune_firefly/README b/games/fortune_firefly/README
index 620d7a49a5cc..8ece1bbfa142 100644
--- a/games/fortune_firefly/README
+++ b/games/fortune_firefly/README
@@ -1,6 +1,6 @@
fortune_firefly (fortunes from the TV series "Firefly")
-This package contains fortunes from the TV series "Firefly", and it's
+This package contains fortunes from the TV series "Firefly", and its
movie "Serenity", by Joss Whedon. The series survived only one season
on Fox; the network scheduled a bad timeslot, played the episodes
out of order, and in general helped seal its fate. Nonetheless, the
diff --git a/games/fortune_firefly/fortune_firefly.SlackBuild b/games/fortune_firefly/fortune_firefly.SlackBuild
index 4f220ff9c953..56d6d217f912 100644
--- a/games/fortune_firefly/fortune_firefly.SlackBuild
+++ b/games/fortune_firefly/fortune_firefly.SlackBuild
@@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# TODO: this build needs to be renamed to fortune-firefly (I used a _
+# ages ago and have since changed my mind).
+
+# 20230828 bkw: updated to my own compilation of firefly quotes,
+# v20230828bkw, which has ~50% more content.
+
# 20180209 bkw: homepage went away again, use someone's github mirror
# of the now-vanished fedora repo.
@@ -17,8 +23,10 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=fortune_firefly
-SRCNAM=firefly
-VERSION=${VERSION:-2.1.2}
+SRCNAM=fortune-firefly-bkw
+VERSION=${VERSION:-20230828bkw}
+SRCVER=${VERSION/bkw/}
+SRCVER="$( echo $VERSION | sed 's,bkw$,,' )"
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,20 +44,21 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
-mkdir -p $PKG $OUTPUT
+mkdir -p $TMP $PKG/install $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$SRCVER
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.xz
+cd $SRCNAM-$SRCVER
+chmod 644 *
+chown root:root *
-mkdir -p $PKG/usr/share/games/fortunes
-cd $PKG/usr/share/games/fortunes
-xzcat $CWD/$SRCNAM-$VERSION.xz > $SRCNAM
+DOCDIR=/usr/doc/$PRGNAM-$VERSION
+PKGDOC=$PKG/$DOCDIR
-rm -f $SRCNAM.dat
-strfile $SRCNAM
+make install DESTDIR=$PKG DOCDIR=$DOCDIR
-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
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
-mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
diff --git a/games/fortune_firefly/fortune_firefly.info b/games/fortune_firefly/fortune_firefly.info
index 325998ac242f..a01da33cd802 100644
--- a/games/fortune_firefly/fortune_firefly.info
+++ b/games/fortune_firefly/fortune_firefly.info
@@ -1,8 +1,8 @@
PRGNAM="fortune_firefly"
-VERSION="2.1.2"
-HOMEPAGE="https://github.com/AndrewReitz/fortune-firefly"
-DOWNLOAD="https://slackware.uk/~urchlay/src/firefly-2.1.2.xz"
-MD5SUM="68e2c4ec035043ba3a0bab0a2b5f64b8"
+VERSION="20230828bkw"
+HOMEPAGE="https://slackware.uk/~urchlay/src/fortune-firefly-bkw.txt"
+DOWNLOAD="https://slackware.uk/~urchlay/src/fortune-firefly-bkw-20230828.tar.xz"
+MD5SUM="59fb3a3326d96cfa8505e39379d79676"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""