games/knights: New maintainer, FHS fix.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-03-09 15:48:43 -05:00 committed by Willy Sudiarto Raharjo
parent 7f99c64498
commit eb91861680
2 changed files with 19 additions and 9 deletions

View file

@ -4,6 +4,7 @@
# Copyright 2011, 2012 Chris Abela, Malta # Copyright 2011, 2012 Chris Abela, Malta
# Copyright 2014 Ryan P.C. McQuen, ryanpcmcquen@member.fsf.org, WA # Copyright 2014 Ryan P.C. McQuen, ryanpcmcquen@member.fsf.org, WA
# Now maintained by B. Watson (yalhcru@gmail.com)
# #
# All rights reserved. # All rights reserved.
# #
@ -24,14 +25,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20170309 bkw:
# - take over maintenance
# - i486 => i586
# - binary in /usr/games
# - BUILD=2
PRGNAM=knights PRGNAM=knights
VERSION=${VERSION:-2.5.0} VERSION=${VERSION:-2.5.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i586 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
@ -42,8 +49,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -79,13 +86,16 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \ -DMAN_INSTALL_DIR=/usr/man \
-DBIN_INSTALL_DIR=/usr/games \
-DCMAKE_BUILD_TYPE=Release .. -DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1 make VERBOSE=1
make install DESTDIR=$PKG make install/strip DESTDIR=$PKG
cd .. cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ # 20170309 bkw: I thought about doing this:
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true #chmod 644 $PKG/usr/share/applications/kde4/$PRGNAM.desktop
# ...but most of the existing files there from other packages are +x,
# not sure if KDE cares about the permissions but I'll leave it as-is.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a DESIGN README* $PKG/usr/doc/$PRGNAM-$VERSION cp -a DESIGN README* $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -6,5 +6,5 @@ MD5SUM="58237998aeee8b6414f6e6f92d070395"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""
MAINTAINER="Ryan P.C. McQuen" MAINTAINER="B. Watson"
EMAIL="ryanpcmcquen@member.fsf.org" EMAIL="yalhcru@gmail.com"