aboutsummaryrefslogtreecommitdiff
path: root/games/fortune_firefly/fortune_firefly.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-08-26 23:49:17 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-30 14:22:22 +0700
commit21890e94b89317bc8cfbe602904ee563ef66e9a5 (patch)
treee6fb2dbffd5256155d5db5bb1f7b2701819a6e2d /games/fortune_firefly/fortune_firefly.SlackBuild
parent3114a6842f0ec052e496a4843853cfd31f8e9408 (diff)
games/fortune_firefly: Updated for version 2.1.2, changed homepage.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
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 c97d65057e4c..ad9f15328e62 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