summaryrefslogtreecommitdiff
path: root/games/fortune_firefly/fortune_firefly.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/fortune_firefly/fortune_firefly.SlackBuild')
-rw-r--r--games/fortune_firefly/fortune_firefly.SlackBuild23
1 files changed, 10 insertions, 13 deletions
diff --git a/games/fortune_firefly/fortune_firefly.SlackBuild b/games/fortune_firefly/fortune_firefly.SlackBuild
index c97d65057e..ad9f15328e 100644
--- a/games/fortune_firefly/fortune_firefly.SlackBuild
+++ b/games/fortune_firefly/fortune_firefly.SlackBuild
@@ -6,13 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
-# I prefer the underscore in the Slackware package name, so
-# bit of tomfoolery here with SRCNAM.
-# Also, the $#@^#^ upstream tarball doesn't create a top-level directory...
+# 20140825 bkw:
+# - update for 2.1.2, which fixes some typos
+# - hosting the source myself now
+# - homepage went away, so use fedora's cgit for homepage
PRGNAM=fortune_firefly
-SRCNAM=fortune-firefly
-VERSION=${VERSION:-2.1.1}
+SRCNAM=firefly
+VERSION=${VERSION:-2.1.2}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -29,14 +30,10 @@ mkdir -p $PKG $OUTPUT
mkdir -p $PKG/usr/share/games/fortunes
cd $PKG/usr/share/games/fortunes
-tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
-
-# The firefly.dat file in the archive doesn't work with the Slackware
-# version of fortune (not sure if it's bad, or for a different fork
-# of the fortune code, or what). So generate a valid firefly.dat.
-# strfile is part of bsd-games.
-rm -f firefly.dat
-strfile firefly
+xzcat $CWD/$SRCNAM-$VERSION.xz > $SRCNAM
+
+rm -f $SRCNAM.dat
+strfile $SRCNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README