aboutsummaryrefslogtreecommitdiff
path: root/games/gottet/gottet.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-08 17:21:23 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:52:39 +0700
commit7e3231a0591855284b1af0205dea0acaba4eafbe (patch)
tree4f0cc887f53666cd9bdaae938a17a59e1f61f9aa /games/gottet/gottet.SlackBuild
parent39ca421fbd84691d04b3e843777d6f943fad6e9e (diff)
games/gottet: Updated for version 1.2.0.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/gottet/gottet.SlackBuild')
-rw-r--r--games/gottet/gottet.SlackBuild43
1 files changed, 14 insertions, 29 deletions
diff --git a/games/gottet/gottet.SlackBuild b/games/gottet/gottet.SlackBuild
index 86662b2453b7..924aa2866452 100644
--- a/games/gottet/gottet.SlackBuild
+++ b/games/gottet/gottet.SlackBuild
@@ -3,27 +3,14 @@
# Slackware build script for gottet
# Originally written by:
-# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
-
+# Ryan P.C. McQuen | Everett, WA | email removed
# Now maintained by B. Watson (yalhcru@gmail.com)
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version, with the following exception:
-# the text of the GPL license may be omitted.
-
-# This program is distributed in the hope that it will be useful, but
-# without any warranty; without even the implied warranty of
-# merchantability or fitness for a particular purpose. Compiling,
-# interpreting, executing or merely reading the text of the program
-# may result in lapses of consciousness and/or very being, up to and
-# including the end of all existence and the Universe as we know it.
-# See the GNU General Public License for more details.
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
-# You may have received a copy of the GNU General Public License along
-# with this program (most likely, a file named COPYING). If not, see
-# <http://www.gnu.org/licenses/>.
+# 20211008 bkw:
+# - relicensed with permission from Ryan.
+# - update for v1.2.0. qt5 now in Slackware...
# 20170309 bkw:
# - take over maintenance
@@ -37,8 +24,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gottet
-VERSION=${VERSION:-1.0.6}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.2.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,9 +37,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -86,17 +70,18 @@ tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
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 640 -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 {} \+
+
+# 20211008 bkw: upstream now includes a man page, put it in the right place.
+sed -i 's,share/man,man,' $PRGNAM.pro
-qmake PREFIX=/usr BINDIR=games
+qmake-qt5 PREFIX=/usr BINDIR=games
sed -i "s,-O2,$SLKCFLAGS," Makefile
make
make install INSTALL_ROOT=$PKG
strip $PKG/usr/games/$PRGNAM
+gzip $PKG/usr/man/man*/*.*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog CREDITS $PKG/usr/doc/$PRGNAM-$VERSION