blob: e86c08b5d1c9e87ef3d23afedc5554c00307f8c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: johnnybash <georg at grgw dot de>
# Contributor: Alex Talker <alextalker at openmailbox dot org>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Alexander Suhoverhov <cy at ngs dot ru>
# Contributor: Jookia <166291@gmail.com>
pkgname=xonotic-autobuild
pkgver=20250408
pkgrel=1
pkgdesc="A free, fast-paced cross-platform first person shooter"
arch=('x86_64' 'aarch64')
url="http://xonotic.org"
license=('GPL-3.0-only')
depends=('alsa-lib' 'curl' 'libmodplug' 'libvorbis' 'libxpm'
'sdl2' 'gtk-update-icon-cache' 'desktop-file-utils')
makedepends=('mesa' 'rsync')
options=('!debug' '!strip')
conflicts=('xonotic' 'xonotic-data' 'xonotic-git')
source=("rsync://beta.xonotic.org/autobuild-Xonotic/misc/tools/rsync-updater/update-to-autobuild.sh"
"rsync://rsync.xonotic.org/autobuild/Xonotic/misc/tools/rsync-updater/mirrors.txt")
sha512sums=('5a66e5548fa8e78dc9dda1b1c0211b7703d129b0f00ee0e6794e8191b97a8eceb6caeb01f8f3a07e8c230d07015438dddcabe294ec97e541e8d5f20835f919f9'
'57e3eb4aa983e0d51b3012a651b772e04a1238e9fdeee37f11016809270cd05a1189f3c4c64621671011897a6c9e31dfc1b391452dddf30f1073cbfe56a85ef9')
b2sums=('6daec3f7be95b68c16df7af4db18ca52090f54784413c858805b074efb40f7017b4bb3bada1c27739eb489d1aae3bc05cf95d66cb4a19524847765f3b7d86048'
'04f02f4b399a36cad1be1ca6b33ac212d8ad0db72e0756f52f6424473bd1968ebaeb805541633c7ea722deead9f1220272f5809065af1d24f58f46621701e183')
pkgver() {
printf $(date +%Y%m%d -r Xonotic/xonotic-linux64-sdl)
}
prepare() {
mkdir -p Xonotic/misc/tools/rsync-updater/
cp update-to-autobuild.sh Xonotic/misc/tools/rsync-updater/
cp mirrors.txt Xonotic/misc/tools/rsync-updater/
cd Xonotic/misc/tools/rsync-updater/
touch Xonotic
sh ./update-to-autobuild.sh --yes
}
build() {
# compile engine
make -C Xonotic/source/darkplaces \
CPUOPTIMIZATIONS="${CFLAGS}" \
DP_FS_BASEDIR=/usr/share/xonotic/ \
DP_LINK_TO_LIBJPEG=1 \
sdl-release
make -C Xonotic/source/darkplaces \
CPUOPTIMIZATIONS="${CFLAGS}" \
DP_FS_BASEDIR=/usr/share/xonotic/ \
DP_LINK_TO_LIBJPEG=1 \
sv-release
cd Xonotic/source/d0_blind_id
./autogen.sh
./configure --prefix=/usr
make
}
package() {
cd Xonotic
# data
install -d "$pkgdir"/usr/share/xonotic/
mv data "$pkgdir"/usr/share/xonotic/
# server stuff
cp -r server "$pkgdir"/usr/share/xonotic/
# binaries
install -Dm755 source/darkplaces/darkplaces-dedicated "$pkgdir"/usr/bin/xonotic-dedicated
install -Dm755 source/darkplaces/darkplaces-sdl "$pkgdir"/usr/bin/xonotic-sdl
# convenience files
install -d "$pkgdir"/usr/share/applications
install -Dm644 misc/logos/xonotic.desktop -t $pkgdir/usr/share/applications
for size in 16 22 24 32 48 64 128 256 512; do
install -Dm644 misc/logos/icons_png/xonotic_${size}.png \
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/xonotic.png"
done
# key
install -Dm644 key_0.d0pk "$pkgdir"/usr/share/xonotic/key_0.d0pk
# crypto stuff
cd source/d0_blind_id
make DESTDIR="$pkgdir" install
}
# vim: ts=2:sw=2 et:
|