summaryrefslogtreecommitdiff
path: root/games/oblige/oblige.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-10-17 14:29:04 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-22 08:47:29 +0700
commit5a81160b695c6915a374ad978db5e32100d3a6c7 (patch)
tree0ae065f65ca2d4ffbea005bbd055be29a99d13a5 /games/oblige/oblige.SlackBuild
parentea03acf75a06a1046c420c25cde4930a116f477e (diff)
downloadslackbuilds-5a81160b695c6915a374ad978db5e32100d3a6c7.tar.gz
games/oblige: Updated for version 7.50.
Diffstat (limited to 'games/oblige/oblige.SlackBuild')
-rw-r--r--games/oblige/oblige.SlackBuild19
1 files changed, 17 insertions, 2 deletions
diff --git a/games/oblige/oblige.SlackBuild b/games/oblige/oblige.SlackBuild
index 5782b5e209..ba9f34209f 100644
--- a/games/oblige/oblige.SlackBuild
+++ b/games/oblige/oblige.SlackBuild
@@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20161016 bkw:
+# - update for 7.50
+# - get rid of CRLF endings in docs
+# - allow script to build both 6.20 and 7.50, see README for why
+# - reword short description in slack-desc (was too vague)
+
# 20150510 bkw:
# - version bump to 6.20
# - use upstream's .desktop and icon
@@ -25,7 +31,7 @@
# in /usr/share.
PRGNAM=oblige
-VERSION=${VERSION:-6.20}
+VERSION=${VERSION:-7.50}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,7 +71,15 @@ rm -rf $PKG
mkdir -p $TMP $PKG/usr/bin $PKG/usr/share/$PRGNAM $OUTPUT
cd $TMP
rm -rf ${SRCNAM}-${VERSION}-source
-tar xvf $CWD/$PRGNAM-$SRCVER-source.tar.gz
+
+# script supports 6.x and 7.x. author switched from .tar.gz to .zip
+# for 7.x, so check for both.
+if [ -e $CWD/$PRGNAM-$SRCVER-source.zip ]; then
+ unzip $CWD/$PRGNAM-$SRCVER-source.zip
+else
+ tar xvf $CWD/$PRGNAM-$SRCVER-source.tar.gz
+fi
+
cd ${SRCNAM}-${VERSION}-source
chown -R root:root .
find -L . \
@@ -90,6 +104,7 @@ cat misc/icon_128x128.png > $PKG/usr/share/pixmaps/$PRGNAM.png
cat misc/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+sed -i 's,\r,,' *.txt doc/*.txt
cp *.txt doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild