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>
This commit is contained in:
B. Watson 2021-10-08 17:21:23 -04:00 committed by Willy Sudiarto Raharjo
parent 39ca421fbd
commit 7e3231a059
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 23 additions and 36 deletions

View file

@ -1 +1,3 @@
gottet is a simple tetris clone.
gottet (A basic tetris clone)
gottet is a simple tetris clone with a Qt user interface.

View file

@ -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.
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 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.
# 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 {} \+
qmake PREFIX=/usr BINDIR=games
# 20211008 bkw: upstream now includes a man page, put it in the right place.
sed -i 's,share/man,man,' $PRGNAM.pro
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

View file

@ -1,8 +1,8 @@
PRGNAM="gottet"
VERSION="1.0.6"
VERSION="1.2.0"
HOMEPAGE="https://gottcode.org/gottet/"
DOWNLOAD="https://gottcode.org/gottet/gottet-1.0.6-src.tar.bz2"
MD5SUM="cacc0861304ee161451bb4ea3c8246d9"
DOWNLOAD="https://gottcode.org/gottet/gottet-1.2.0-src.tar.bz2"
MD5SUM="58156a38b2b28548810cda1f960a5ac0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -6,14 +6,14 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
gottet: gottet (A basic tetris clone)
gottet: gottet (a basic tetris clone)
gottet:
gottet: gottet is a simple tetris clone with a Qt user interface.
gottet:
gottet: gottet is a simple tetris clone.
gottet:
gottet:
gottet:
gottet:
gottet:
gottet:
gottet: http://gottcode.org/gottet/
gottet: