diff options
Diffstat (limited to 'games/wesnoth/wesnoth.SlackBuild')
-rw-r--r-- | games/wesnoth/wesnoth.SlackBuild | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/games/wesnoth/wesnoth.SlackBuild b/games/wesnoth/wesnoth.SlackBuild index 8631b6c29f..3af210423e 100644 --- a/games/wesnoth/wesnoth.SlackBuild +++ b/games/wesnoth/wesnoth.SlackBuild @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash # SlackBuild script for "Battle of Wesnoth". # Copyright 2007-2010 Michiel van Wessem, Manchester, United Kingdom # Copyright 2010-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> -# Copyright 2018 Edward W. Koenig, Vancouver, WA, USA +# Copyright 2018-2022 Edward W. Koenig, Vancouver, WA, USA # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -26,10 +26,13 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wesnoth -VERSION=${VERSION:-1.14.7} +VERSION=${VERSION:-1.16.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -39,7 +42,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -76,14 +83,15 @@ 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ scons \ CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ prefix=/usr \ + bindir=/usr/games \ libdir=/usr/lib${LIBDIRSUFFIX} \ datadir=/usr/share/wesnoth \ docdir=/usr/doc/$PRGNAM-$VERSION \ @@ -95,12 +103,13 @@ scons \ wesnoth wesnothd campaignd scons install destdir=$PKG +strip $PKG/usr/games/* 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 INSTALL.md changelog.md README.md copyright $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING changelog.md README.md copyright $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir $PKG/install @@ -108,4 +117,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |