summaryrefslogtreecommitdiff
path: root/games/0ad/0ad.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/0ad/0ad.SlackBuild')
-rw-r--r--games/0ad/0ad.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/games/0ad/0ad.SlackBuild b/games/0ad/0ad.SlackBuild
index 7034882db2..5c316e259e 100644
--- a/games/0ad/0ad.SlackBuild
+++ b/games/0ad/0ad.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=0ad
-VERSION=${VERSION:-0.0.13}
+VERSION=${VERSION:-0.0.17}
RELEASE=${RELEASE:-alpha}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -78,21 +78,29 @@ export LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}"
# Fix boost names
sed -i 's/-mt//g' build/premake/extern_libs4.lua
+# build/workspaces/update-workspaces.sh
+# have a root check, let's disable it.
+patch -p1 < $CWD/disable-root-check.patch
+
build/workspaces/update-workspaces.sh \
--bindir=/usr/games \
--datadir=/usr/share/games/0ad \
--libdir=/usr/lib${LIBDIRSUFFIX}/0ad \
--${ATLAS:-disable}-atlas
- # --with-system-enet enet in repo is too old
- # --with-system-mozjs185 js in repo is too old
+ # --with-system-mozjs24 - js in repo is too old
make CONFIG=Release -C build/workspaces/gcc
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/0ad
-cp binaries/system/*so* $PKG/usr/lib${LIBDIRSUFFIX}/0ad
+cp binaries/system/*.so* $PKG/usr/lib${LIBDIRSUFFIX}/0ad
chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/0ad/*
+# install additional data - l10n, etc.
+mkdir -p $PKG/usr/share/games
+cp -r binaries/data $PKG/usr/share/games/0ad
+chmod 0755 $PKG/usr/share/games/0ad
+
install -Dm 0755 binaries/system/pyrogenesis $PKG/usr/games/pyrogenesis
[ -e binaries/system/ActorEditor ] && \
@@ -111,6 +119,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE.txt README.txt license_dbghelp.txt license_gpl-2.0.txt license_lgpl-2.1.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
+cp binaries/system/readme.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION/README-options.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install