summaryrefslogtreecommitdiffstats
path: root/games/doomseeker/doomseeker.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/doomseeker/doomseeker.SlackBuild')
-rw-r--r--games/doomseeker/doomseeker.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/games/doomseeker/doomseeker.SlackBuild b/games/doomseeker/doomseeker.SlackBuild
index 30f394999b..96ac41e5fe 100644
--- a/games/doomseeker/doomseeker.SlackBuild
+++ b/games/doomseeker/doomseeker.SlackBuild
@@ -6,15 +6,21 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20200122 bkw: updated for v1.3+20200119_b623ab1. Latest git fixes
+# a segfault issue that normally only occurs when starting doomseeker
+# without ~/.config/doomseeker/* (so the previous version worked for me,
+# but wouldn't for a new user).
# 20191211 bkw: updated for v1.3. qt4 support was dropped, qt5 now required.
# 20181218 bkw: updated for v1.2. Upstream has changed things around,
# so this script won't build 1.1 any longer.
PRGNAM=doomseeker
-VERSION=${VERSION:-1.3}
+VERSION=${VERSION:-1.3+20200119_b623ab1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+TARVER="$( echo "$VERSION" | cut -d+ -f1 )"
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -48,14 +54,18 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$TARVER
+tar xvf $CWD/$PRGNAM-$TARVER.tar.xz
+cd $PRGNAM-$TARVER
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# 20200122 bkw: sorry, rworkman, I know you hate gzipped diffs, but
+# this one has mixed \r\n and \n line endings, git would eat it.
+[ -e "$CWD/$VERSION.diff.gz" ] && zcat "$CWD/$VERSION.diff.gz" | patch -p1
+
mkdir -p build
cd build
# Buggy cmake install target looks in wrong place for icon