summaryrefslogtreecommitdiffstats
path: root/games/wesnoth/wesnoth.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/wesnoth/wesnoth.SlackBuild')
-rw-r--r--games/wesnoth/wesnoth.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/games/wesnoth/wesnoth.SlackBuild b/games/wesnoth/wesnoth.SlackBuild
index a585dfc7db..3af210423e 100644
--- a/games/wesnoth/wesnoth.SlackBuild
+++ b/games/wesnoth/wesnoth.SlackBuild
@@ -4,7 +4,7 @@
# 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
@@ -29,7 +29,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wesnoth
-VERSION=${VERSION:-1.14.17}
+VERSION=${VERSION:-1.16.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -42,9 +42,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,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 \
@@ -105,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