summaryrefslogtreecommitdiffstats
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.SlackBuild38
1 files changed, 22 insertions, 16 deletions
diff --git a/games/fortune_firefly/fortune_firefly.SlackBuild b/games/fortune_firefly/fortune_firefly.SlackBuild
index b4af103324..56d6d217f9 100644
--- a/games/fortune_firefly/fortune_firefly.SlackBuild
+++ b/games/fortune_firefly/fortune_firefly.SlackBuild
@@ -2,10 +2,16 @@
# Slackware build script for fortune_firefly
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# 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,16 +23,15 @@
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}
PKGTYPE=${PKGTYPE:-tgz}
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -39,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