aboutsummaryrefslogtreecommitdiff
path: root/games/oblige
diff options
context:
space:
mode:
Diffstat (limited to 'games/oblige')
-rw-r--r--games/oblige/README9
-rw-r--r--games/oblige/oblige.SlackBuild16
-rw-r--r--games/oblige/oblige.info6
3 files changed, 21 insertions, 10 deletions
diff --git a/games/oblige/README b/games/oblige/README
index 4897aee55c200..655f4e9542b8d 100644
--- a/games/oblige/README
+++ b/games/oblige/README
@@ -22,7 +22,8 @@ these, install oblige-legacy4 (which can co-exist with this version).
Oblige 6 and 7 take completely different approaches to level generation.
Some people might prefer version 6, so this script supports both. By
-default, the version in the .info file (currently 7.50) is built. To build
-version 6 instead, get oblige-620-source.tar.gz from the author's site,
-place it in the SlackBuild directory, and run the script with VERSION=6.20
-in the environment.
+default, the version in the .info file (currently 7.666) is built. To
+build version 6 instead, get oblige-620-source.tar.gz from the author's
+site, place it in the SlackBuild directory, and run the script with
+VERSION=6.20 in the environment. Also VERSION=7.50 is supported, if you
+have a use for that.
diff --git a/games/oblige/oblige.SlackBuild b/games/oblige/oblige.SlackBuild
index ba9f34209ff28..0006462ed14c5 100644
--- a/games/oblige/oblige.SlackBuild
+++ b/games/oblige/oblige.SlackBuild
@@ -6,6 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20170817 bkw:
+# - update for 7.666. Sadly this might be the last update, upstream is
+# tired of working on oblige :(
+
# 20161016 bkw:
# - update for 7.50
# - get rid of CRLF endings in docs
@@ -31,7 +35,7 @@
# in /usr/share.
PRGNAM=oblige
-VERSION=${VERSION:-7.50}
+VERSION=${VERSION:-7.666}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -104,8 +108,14 @@ 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
+rm -f INSTALL.txt # don't need compile instruction in bin package
+sed -i 's,\r,,' *.txt
+cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
+# 6.x and 7.50 have extra docs, 7.666 doesn't:
+if [ -d doc ]; then
+ sed -i 's,\r,,' doc/*.txt
+ cp doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+fi
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/games/oblige/oblige.info b/games/oblige/oblige.info
index 043db90cda318..fc19e0c2fc8f2 100644
--- a/games/oblige/oblige.info
+++ b/games/oblige/oblige.info
@@ -1,8 +1,8 @@
PRGNAM="oblige"
-VERSION="7.50"
+VERSION="7.666"
HOMEPAGE="http://oblige.sourceforge.net/"
-DOWNLOAD="http://sourceforge.net/projects/oblige/files/Oblige/7.50/oblige-750-source.zip"
-MD5SUM="02bb5cb719844035eba57ce03e2fa29a"
+DOWNLOAD="http://sourceforge.net/projects/oblige/files/Oblige/7.666/oblige-7666-source.zip"
+MD5SUM="5cc744def8f87f817cffd15da1adbccb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fltk"