summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-04-30 14:13:38 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-07 13:59:18 +0700
commitb6945e59a083d8dcb40858b024ee5f1f8dfd4707 (patch)
tree560bef2272f1290a0db4f43a3773e07ce290ee1e /games
parent0cd4b169331b1d0dca320e523f285f0423c83590 (diff)
downloadslackbuilds-b6945e59a083d8dcb40858b024ee5f1f8dfd4707.tar.gz
slackbuilds-b6945e59a083d8dcb40858b024ee5f1f8dfd4707.tar.xz
games/wesnoth: Strip binaries.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/wesnoth/wesnoth.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/games/wesnoth/wesnoth.SlackBuild b/games/wesnoth/wesnoth.SlackBuild
index c4bb946934..6fd4dae453 100644
--- a/games/wesnoth/wesnoth.SlackBuild
+++ b/games/wesnoth/wesnoth.SlackBuild
@@ -26,11 +26,17 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220430 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - strip binaries.
+# - remove useless INSTALL.md.
+# Note to maintainer: The man pages are section 6, so please consider
+# moving the binaries to /usr/games.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wesnoth
VERSION=${VERSION:-1.16.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -102,12 +108,13 @@ scons \
wesnoth wesnothd campaignd
scons install destdir=$PKG
+strip $PKG/usr/bin/*
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