aboutsummaryrefslogtreecommitdiff
path: root/games/doomseeker/doomseeker.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/doomseeker/doomseeker.SlackBuild')
-rw-r--r--games/doomseeker/doomseeker.SlackBuild59
1 files changed, 31 insertions, 28 deletions
diff --git a/games/doomseeker/doomseeker.SlackBuild b/games/doomseeker/doomseeker.SlackBuild
index 6aae4c062934..b0a5f8137da1 100644
--- a/games/doomseeker/doomseeker.SlackBuild
+++ b/games/doomseeker/doomseeker.SlackBuild
@@ -6,8 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 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.1}
+VERSION=${VERSION:-1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,53 +46,53 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-${VERSION}_src
-tar xvf $CWD/$PRGNAM-${VERSION}_src.tar.bz2
-cd $PRGNAM-${VERSION}_src
+
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
mkdir -p build
cd build
# Buggy cmake install target looks in wrong place for icon
ln -s ../media .
cmake \
+ -DFORCE_QT4=YES \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
cd ..
# Shared lib gets installed to wrong place, easier to fix it here than patch.
-# Also note, doomseeker violates the FHS by placing shared objects in /usr/share.
-# I won't try to fix that, but I will strip them.
-[ "$LIBDIRSUFFIX" != "" ] && mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX
-chmod 755 $PKG/usr/share/$PRGNAM/engines/*.so
-strip $PKG/usr/share/$PRGNAM/engines/*.so
+[ "$LIBDIRSUFFIX" != "" ] && \
+ [ -e "$PKG/usr/lib" ] && \
+ mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX
-# Fix the .desktop file
-sed -i \
- -e '/^Categories/s/$/;/' \
- -e '/^Icon/s,=.*,=doomseeker,' \
- $PKG/usr/share/applications/*desktop
-
-mkdir -p $PKG/usr/share/pixmaps
-ln -s ../$PRGNAM/icon.png $PKG/usr/share/pixmaps/$PRGNAM.png
+# This is a game (or anyway a game utility, the binary
+# belongs in /usr/games. cmake accepts and totally ignores
+# "-DCMAKE_INSTALL_BINDIR=games" so just move the damn thing after
+# install.
+mv $PKG/usr/bin $PKG/usr/games
+# cmake is also ignoring -DCMAKE_INSTALL_DOCDIR.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share/doc
+
+chmod 755 $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/engines/*.so
+strip $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/engines/*.so
+
+# only got the one PNG icon here
+mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
-# Not only do they not ship docs, there aren't really any on their
-# web site, either. At least the GUI's easy to figure out.
-chmod -x LICENSE*
-cp -a LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install