summaryrefslogtreecommitdiffstats
path: root/games/xonotic/xonotic.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/xonotic/xonotic.SlackBuild')
-rw-r--r--games/xonotic/xonotic.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/games/xonotic/xonotic.SlackBuild b/games/xonotic/xonotic.SlackBuild
index c1e9ae48c5..15eed09d5c 100644
--- a/games/xonotic/xonotic.SlackBuild
+++ b/games/xonotic/xonotic.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xonotic
VERSION=${VERSION:-0.8.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,9 +73,9 @@ 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 {} \;
mkdir -p \
$PKG/usr/bin \
@@ -83,7 +83,7 @@ mkdir -p \
$PKG/usr/share/{applications,pixmaps}
cd source/d0_blind_id
- autoreconf -fi
+ ./autogen.sh
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -92,7 +92,7 @@ cd source/d0_blind_id
--disable-static
make
- make install DESTDIR=$PKG
+ make install-strip DESTDIR=$PKG
cd -
# Rather than using libdl, link libd0_blind_id and libd0_rijndael
@@ -106,18 +106,24 @@ make -C source/darkplaces release \
install -m 755 source/darkplaces/darkplaces-sdl $PKG/usr/bin/xonotic-sdl
install -m 755 source/darkplaces/darkplaces-glx $PKG/usr/bin/xonotic-glx
-install -m 644 $CWD/xonotic.desktop $PKG/usr/share/applications
+install -m 755 source/darkplaces/darkplaces-dedicated $PKG/usr/bin/xonotic-dedicated
+install -m 644 $CWD/*.desktop $PKG/usr/share/applications
install -m 644 misc/logos/xonotic_icon.svg $PKG/usr/share/pixmaps/xonotic.svg
cp -a data key_0.d0pk $PKG/usr/share/$PRGNAM
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/server
cp -a \
- COPYING Docs/* \
+ COPYING Docs/*.txt Docs/egyptsoc Docs/faq.md Docs/guide.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
+# Copy dedicated server related files
+cp -a \
+ server/readme.txt server/server.cfg server/server_linux.sh server/rcon.pl \
+ $PKG/usr/doc/$PRGNAM-$VERSION/server
+
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc