summaryrefslogtreecommitdiff
path: root/games/oblige/oblige.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2013-06-30 19:19:21 -0300
committerErik Hanson <erik@slackbuilds.org>2013-07-02 16:06:52 -0500
commit7a921cdbff97bd9c82c7c084903cf81abed5fe0b (patch)
treed831629a28052714d6891e9dc880c2721d80768a /games/oblige/oblige.SlackBuild
parent9e23e234410e183871b6cac69f57ac93e0654cee (diff)
downloadslackbuilds-7a921cdbff97bd9c82c7c084903cf81abed5fe0b.tar.gz
games/oblige: Updated for version 4.28b
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/oblige/oblige.SlackBuild')
-rw-r--r--games/oblige/oblige.SlackBuild26
1 files changed, 15 insertions, 11 deletions
diff --git a/games/oblige/oblige.SlackBuild b/games/oblige/oblige.SlackBuild
index bcabcb2443..2a82c966a9 100644
--- a/games/oblige/oblige.SlackBuild
+++ b/games/oblige/oblige.SlackBuild
@@ -7,8 +7,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=oblige
-VERSION=${VERSION:-3.57}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.28b}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -41,13 +41,14 @@ fi
set -e
SRCVER=$( echo $VERSION | sed 's/\.//g' )
+SRCNAM="Oblige" # grrrr!
rm -rf $PKG
mkdir -p $TMP $PKG/usr/bin $PKG/usr/share/$PRGNAM $OUTPUT
cd $TMP
-rm -rf ${PRGNAM}_${SRCVER}_src
-unzip $CWD/$PRGNAM-$SRCVER-src.zip
-cd ${PRGNAM}_${SRCVER}_src
+rm -rf ${SRCNAM}-${VERSION}-source
+unzip $CWD/$PRGNAM-$SRCVER-source.zip
+cd ${SRCNAM}-${VERSION}-source
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -55,19 +56,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-patch -p1 < $CWD/compile_fixes.diff
-patch -p1 < $CWD/lua_compile_fixes.diff
+# Makefile.unixy originally came from the oblige author, I've hacked
+# it up to make it work with oblige 4.x and SBo's fltk13.
+cp $CWD/Makefile.unixy Makefile
-cd gui
-make -f Makefile.unixy OPTIMISE="$SLKCFLAGS"
-make -f Makefile.unixy install INSTALL_PREFIX=$PKG/usr
+# Fix a missing include
+sed -i '1i#include <unistd.h>' gui/lib_util.cc
+
+make INSTALL_PREFIX=/usr OPTIMISE="$SLKCFLAGS" FLTK_CONFIG=fltk13-config
+make install INSTALL_PREFIX=$PKG/usr
mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp ../*.txt ../doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp *.txt doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install