aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorС. С. Болоканаръ <bolokanar@protonmail.ch>2023-01-21 15:51:49 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-28 08:23:07 +0700
commit11254bb01a81b2cdd24614d1e12ee3740367b22e (patch)
treeb09a7f34c89f9d5715228927201cf366d6690da2 /games
parent59b04d3c46f87c56c5b7036096d09cca9bb20594 (diff)
games/xonotic: add dedicated server.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/xonotic/README10
-rw-r--r--games/xonotic/xonotic-sdl.desktop8
-rw-r--r--games/xonotic/xonotic.SlackBuild24
3 files changed, 33 insertions, 9 deletions
diff --git a/games/xonotic/README b/games/xonotic/README
index 0611d9c7e686..c51e0631954c 100644
--- a/games/xonotic/README
+++ b/games/xonotic/README
@@ -4,3 +4,13 @@ addictive arena shooter gameplay which is all spawned and driven by
the community itself. Xonotic is a direct successor of the Nexuiz
project with years of development between them, and it aims to become
the best possible open-source FPS (first-person-shooter) of its kind.
+
+Note: package now includes the dedicated server.
+
+To start a dedicater server:
+ - copy doc/server/server.cfg to ~/.xonotic/data/server.cfg
+ - edit cfg according to your needs
+ - start server via 'xonotic-dedicated'
+
+For server configuration check out the wiki's server section:
+https://gitlab.com/xonotic/xonotic/-/wikis/home#server-administration
diff --git a/games/xonotic/xonotic-sdl.desktop b/games/xonotic/xonotic-sdl.desktop
new file mode 100644
index 000000000000..fe5b8e483209
--- /dev/null
+++ b/games/xonotic/xonotic-sdl.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=Xonotic (SDL)
+Categories=Game;
+Exec=xonotic-sdl
+Icon=xonotic
+Terminal=false
+StartupNotify=false
diff --git a/games/xonotic/xonotic.SlackBuild b/games/xonotic/xonotic.SlackBuild
index c1e9ae48c5ed..15eed09d5c14 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