aboutsummaryrefslogtreecommitdiff
path: root/games/assaultcube/assaultcube.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2014-03-24 09:24:12 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-03-24 09:25:49 +0700
commitfe35329a9cdeb8c8eb03623afa9171da4e0617bb (patch)
tree104e24299e9e89576e744cf349c7480a2d522e46 /games/assaultcube/assaultcube.SlackBuild
parent0b6b955dc0aaa866c039605848ee59e5cdcad7d4 (diff)
games/assaultcube: Updated for version 1.2.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/assaultcube/assaultcube.SlackBuild')
-rw-r--r--games/assaultcube/assaultcube.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/games/assaultcube/assaultcube.SlackBuild b/games/assaultcube/assaultcube.SlackBuild
index bdf31088d3394..0f5f023de632a 100644
--- a/games/assaultcube/assaultcube.SlackBuild
+++ b/games/assaultcube/assaultcube.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for assaultcube
-# Copyright 2011-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2011-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
SRCNAM=AssaultCube
PRGNAM=assaultcube
-VERSION=${VERSION:-1.2.0.1}
+VERSION=${VERSION:-1.2.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,18 +62,21 @@ cd ${SRCNAM}_v${VERSION}
chown -R root:root .
find . -type f ! -name configure -exec chmod 644 '{}' \;
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
-# Use custom SLKCFLAGS and remove precompiled binaries.
+# Use custom SLKCFLAGS, remove end-of-line encoding and remove precompiled binaries.
patch -p1 < $CWD/Makefile.patch
sed -i 's/\r//g' changelog.txt
sed -i "s|-O2|$SLKCFLAGS|" source/enet/configure
rm -f bin_unix/*
+# Remove unneeded comments.
+sed -i -r '/^#(CUBE|SYSTEM|MACHINE)/d' assaultcube.sh server.sh
# Fix an illegal string literal.
-sed -i "s|Couldn.t|Couldn't|" source/src/bot/bot_waypoint.cpp
+cat -v source/src/bot/bot_waypoint.cpp | sed "s|M-4|'|" > bot_waypoint.cpp
+mv bot_waypoint.cpp source/src/bot/bot_waypoint.cpp
EXTRA_CXXFLAGS="$SLKCFLAGS" \
make -C source/src
@@ -85,8 +88,7 @@ sed -i "/^CUBE_DIR/s|=.*|=\"/usr/share/${PRGNAM}\"|" $PRGNAM.sh server.sh
install -m 0755 $PRGNAM.sh $PKG/usr/games/$PRGNAM
install -m 0755 server.sh $PKG/usr/games/$PRGNAM-server
chmod 0755 bin_unix/*
-cp -ar \
- bin_unix bot config demos mods packages screenshots scripts \
+cp -ar bin_unix bot config demos mods packages screenshots scripts \
$PKG/usr/share/$PRGNAM
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@@ -101,8 +103,7 @@ for i in 16 24 32 48 64 96 128 256; do
done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- changelog.txt source/*.txt source/src/*.txt docs/*.txt README.html \
+cp -a changelog.txt source/*.txt source/src/*.txt docs/*.txt README.html \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild