summaryrefslogtreecommitdiffstats
path: root/games/fortune-dune/fortune-dune.SlackBuild
diff options
context:
space:
mode:
author B. Watson2017-07-05 03:11:46 +0200
committer Willy Sudiarto Raharjo2017-07-08 02:11:16 +0200
commit1df524395d47772a94a4f5631e22dde9b7ac956c (patch)
tree6741c13ad01d794d91d6047fcf8cf4db46631c42 /games/fortune-dune/fortune-dune.SlackBuild
parent66c00df044aa06d9076020159ebb9811a05258c7 (diff)
downloadslackbuilds-1df524395d47772a94a4f5631e22dde9b7ac956c.tar.gz
games/fortune-dune: Switch to github URL.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/fortune-dune/fortune-dune.SlackBuild')
-rw-r--r--games/fortune-dune/fortune-dune.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/games/fortune-dune/fortune-dune.SlackBuild b/games/fortune-dune/fortune-dune.SlackBuild
index ecd8e4cf28..233ed23cae 100644
--- a/games/fortune-dune/fortune-dune.SlackBuild
+++ b/games/fortune-dune/fortune-dune.SlackBuild
@@ -20,16 +20,12 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
-# I am *not* naming my package "fortune-mod-dune-quotes", fortune-dune
-# is descriptive enough.
-TARNAME=fortune-mod-dune-quotes
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $TARNAME.$VERSION
-tar xvf $CWD/$TARNAME.$VERSION.tar.gz
-cd $TARNAME.$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -38,7 +34,7 @@ find -L . \
-exec chmod 644 {} \;
# Don't trust the prebuilt index files
-rm *.dat
+rm -f *.dat
# The fan base is divided on the "Prequels suck! No, prequels rule!" issue,
# so accomodate both sides of the debate.
@@ -51,12 +47,11 @@ fi
# Also, fix a couple errors where the % delimiter is followed by an
# extraneous space (causes adjacent fortunes to be concatenated)
mkdir -p $PKG/usr/share/games/fortunes
-sed 's/^% */%/' * > $PKG/usr/share/games/fortunes/dune
+sed 's/^% */%/' [a-z]* > $PKG/usr/share/games/fortunes/dune
( cd $PKG/usr/share/games/fortunes && strfile dune )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cat .message > $PKG/usr/doc/$PRGNAM-$VERSION/message
-cat .message.html > $PKG/usr/doc/$PRGNAM-$VERSION/message.html
+cp -a LICENSE README.md
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install