summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2022-09-23 12:49:45 -0300
committerRafael Fontenelle2022-09-23 12:49:45 -0300
commitbb3756784f1e0dbac3cfb1ff003a17246b47e503 (patch)
treec4f2e29d9222e72e706b1c814d6e11fbca878b46
parent3927b3633bfca88d0d3f878dc7ca2818beb63788 (diff)
downloadaur-bb3756784f1e0dbac3cfb1ff003a17246b47e503.tar.gz
Use new ddnet.org domain
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD21
2 files changed, 13 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c79f1cafa2f..3fd68cbae0e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = ddnet-maps-git
pkgdesc = All released maps with configs for DDraceNetwork server
- pkgver = r1595.g396e95db
+ pkgver = r1620.g9b4a5578
pkgrel = 1
- url = https://ddnet.tw
+ url = https://ddnet.org
arch = any
license = custom
makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index cd037617140..36fa45259ef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,16 +2,16 @@
# Maintainer: Edgar Luque <git@edgarluque.com>
pkgname=ddnet-maps-git
-pkgver=r1595.g396e95db
+pkgver=r1620.g9b4a5578
pkgrel=1
pkgdesc="All released maps with configs for DDraceNetwork server"
arch=(any)
-url="https://ddnet.tw"
+url="https://ddnet.org"
license=('custom')
-makedepends=('git')
-backup=('usr/share/ddnet/data/autoexec_server_maps.cfg'
- 'usr/share/ddnet/data/reset.cfg'
- 'usr/share/ddnet/data/storage.cfg')
+makedepends=(git)
+backup=(usr/share/ddnet/data/autoexec_server_maps.cfg
+ usr/share/ddnet/data/reset.cfg
+ usr/share/ddnet/data/storage.cfg)
source=("git+https://github.com/ddnet/${pkgname%%-git}.git")
md5sums=('SKIP')
@@ -22,7 +22,6 @@ pkgver() {
prepare() {
cd ${pkgname%%-git}
-
# Remove exec permission from files
find types/ -type f -exec chmod 644 {} \;
}
@@ -38,19 +37,21 @@ package() {
install -m644 reset.cfg $_datadir
install -m644 storage.cfg $_datadir
- # Disable test flag
+ # Unset test flag to disable cheats by default
sed '/sv_test_cmds/s/1/0/' -i $_datadir/autoexec_server_maps.cfg
# Set map type list, and fail if no map type is found
- _typelist=$(ls -d types/* | sed 's|.*/||')
+ _typelist=$(find types/ -name '*.map' | cut -d/ -f2 | sort -u)
[ -n "$_typelist" ]
+ # Install map types in the data directory used by DDNet Server,
+ # and symlink their maps in the maps directory used by DDNet Client
for _type in $_typelist; do
cp -a types/$_type $_datadir/types/
ln -rs $_datadir/types/$_type/maps/* $_datadir/maps/
done
- # Avoid file conflicts of maps already provided in the DDNet package
+ # Remove conflicting maps already provided in the DDNet package
rm -f "$_datadir/maps/Gold Mine.map" \
"$_datadir/maps/LearnToPlay.map" \
"$_datadir/maps/Sunny Side Up.map" \