summaryrefslogtreecommitdiffstats
path: root/games/simsu/simsu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/simsu/simsu.SlackBuild')
-rw-r--r--games/simsu/simsu.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/games/simsu/simsu.SlackBuild b/games/simsu/simsu.SlackBuild
index 5c9f077100..96c9c8259d 100644
--- a/games/simsu/simsu.SlackBuild
+++ b/games/simsu/simsu.SlackBuild
@@ -4,7 +4,7 @@
# Copyright 2010, 2012 Binh Nguyen <binhvng@gmail.com>
# Copyright 2012-2017 Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
-# Copyright 2017 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
+# Copyright 2017-2022 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=simsu
-VERSION=${VERSION:-1.2.3}
+VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -68,12 +68,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Fix man page location
+sed -i 's|$$PREFIX/share/man/|$$PREFIX/man/|' simsu.pro
+
qmake PREFIX=/usr
make install INSTALL_ROOT=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog CREDITS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild