mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
games/gottet: New maintainer, FHS fix.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
33f56ee915
commit
7f99c64498
2 changed files with 33 additions and 8 deletions
|
@ -2,8 +2,11 @@
|
|||
|
||||
# Slackware build script for gottet
|
||||
|
||||
# Originally written by:
|
||||
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
|
||||
|
||||
# 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
|
||||
|
@ -22,14 +25,23 @@
|
|||
# with this program (most likely, a file named COPYING). If not, see
|
||||
# <http://www.gnu.org/licenses/>.
|
||||
|
||||
# 20170309 bkw:
|
||||
# - take over maintenance
|
||||
# - thought about a version bump, but 1.0.6 is the last version that
|
||||
# supports qt4. don't want qt5 as a dep.
|
||||
# - binary in /usr/games
|
||||
# - i486 => i586
|
||||
# - support SLKCFLAGS
|
||||
# - BUILD=2
|
||||
|
||||
PRGNAM=gottet
|
||||
VERSION=${VERSION:-1.0.6}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -40,6 +52,20 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
|
@ -56,12 +82,11 @@ 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 {} \;
|
||||
|
||||
qmake PREFIX=/usr
|
||||
qmake PREFIX=/usr BINDIR=games
|
||||
sed -i "s,-O2,$SLKCFLAGS," Makefile
|
||||
make
|
||||
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
|
||||
strip $PKG/usr/games/$PRGNAM
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COPYING ChangeLog CREDITS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -6,5 +6,5 @@ MD5SUM="cacc0861304ee161451bb4ea3c8246d9"
|
|||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Ryan P.C. McQuen"
|
||||
EMAIL="ryanpcmcquen@member.fsf.org"
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
||||
|
|
Loading…
Reference in a new issue