aboutsummaryrefslogtreecommitdiff
path: root/games/unvanquished/unvanquished.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2016-06-09 01:46:55 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-09 07:44:03 +0700
commitcc53209e5c2b48c25735c74d2ff492938e90d738 (patch)
tree36d65c61515cb7633beed74ad264e13ff98a86ed /games/unvanquished/unvanquished.SlackBuild
parentd25207a8b488d0b7a604ab2b395b91c508089c8c (diff)
games/unvanquished: Updated for version 0.50.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'games/unvanquished/unvanquished.SlackBuild')
-rw-r--r--games/unvanquished/unvanquished.SlackBuild32
1 files changed, 24 insertions, 8 deletions
diff --git a/games/unvanquished/unvanquished.SlackBuild b/games/unvanquished/unvanquished.SlackBuild
index 34d808f6b11e..ed049fff9133 100644
--- a/games/unvanquished/unvanquished.SlackBuild
+++ b/games/unvanquished/unvanquished.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for unvanquished
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
SRCNAM=Unvanquished
PRGNAM=$(echo ${SRCNAM,,})
-VERSION=${VERSION:-0.26.0}
+VERSION=${VERSION:-0.50.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,18 +57,26 @@ fi
set -e
+EXT_DEPS="linux32-4"
+if [ "$ARCH" = "x86_64" ]; then
+ EXT_DEPS="linux64-4"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $SRCNAM-$VERSION
+cd daemon/external_deps
+tar xvf $CWD/$EXT_DEPS.tar.bz2
+cd -
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 \
\( -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 {} \;
if [ "$ARCH" = "x86_64" ]; then
sed -i -e 's/Unvanquished/unvanquished/g' -e \
@@ -85,14 +93,17 @@ else
sed -i 's/conf.d\///g' archlinux/unvanquished.service
fi
+# Fix avoid download automaticaly dependencies
+patch -p1 < $CWD/cmakelists.patch
+
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -D BUILD_GAME_QVM=OFF \
- -D BUILD_TTY_CLIENT=ON \
+ -DBUILD_CGAME=OFF \
+ -DBUILD_SGAME=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
@@ -107,9 +118,15 @@ mkdir -p $PKG/usr/bin \
$PKG/var/lib/unvanquished-server/config
# Install content
-install -D -m0644 *.so $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
-install -D -m0755 daemon* $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+install -D -m0755 daemon $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+install -D -m0755 daemon-tty $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+install -D -m0755 daemonded $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+install -D -m0755 irt_core-x86*.nexe $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+install -D -m0755 nacl_helper_bootstrap $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+install -D -m0755 nacl_loader $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+
cd ..
+# Install server config
install -D -m0644 debian/configfiles/server.cfg $PKG/etc/$PRGNAM/config/server.cfg
install -D -m0644 debian/configfiles/maprotation.cfg $PKG/etc/$PRGNAM/config/maprotation.cfg
@@ -128,7 +145,6 @@ ln -sf $PKG/etc/$PRGNAM/config/maprotation.cfg \
# Copy the data-game
mkdir -p $PKG/usr/share/games/$PRGNAM/pkg
-cp -a $CWD/$PRGNAM\_0.25.0.pk3 $PKG/usr/share/games/$PRGNAM/pkg
cp -a $CWD/$PRGNAM\_$VERSION.pk3 $PKG/usr/share/games/$PRGNAM/pkg
mkdir -p $PKG/usr/share/applications