blob: d1943e31f3c6bbc03197d4e5d0f354b68d4bfa61 (
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor:
# Maintainer:
pkgname=xonotic
pkgver=0.8.2
pkgrel=0
pkgdesc="A free, fast-paced crossplatform first-person shooter"
url="https://www.xonotic.org/"
arch="x86 x86_64"
license="GPL-2.0-or-later"
depends="xonotic-data"
makedepends="autoconf
automake
libtool
alsa-lib-dev
curl-dev
libjpeg-turbo-dev
libmodplug-dev
libvorbis-dev
libxpm-dev
libxxf86dga-dev
libxxf86vm-dev
sdl2-dev
libpng-dev
mesa-dev
gmp-dev"
install=""
subpackages="$pkgname-server $pkgname-sdl $pkgname-glx"
options="!check"
source="$pkgname-$pkgver.zip::http://dl.xonotic.org/${pkgname}-${pkgver}-source.zip
xonotic-moncontrol.patch
xonotic-sdl.desktop
xonotic-glx.desktop"
builddir="$srcdir"/Xonotic
build() {
cd "$builddir"
local r
for r in sv sdl cl; do
make -C "$builddir"/source/darkplaces \
CPUOPTIMIZATIONS="$CFLAGS" \
DP_FS_BASEDIR="/usr/share/$pkgname" \
DP_LINK_TO_LIBJPEG=1 \
"$r"-release
done
cd "$builddir"/source/d0_blind_id
sh autogen.sh
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
package() {
cd "$builddir"/source/d0_blind_id
make DESTDIR="$pkgdir" install
cd "$pkgdir"/usr
rm -r include
cd lib
rm -r pkgconfig *.a
local size
for size in 16 22 24 32 48 64 128 256 512; do
install -Dm644 "$builddir"/misc/logos/icons_png/xonotic_"$size".png \
"$pkgdir"/usr/share/icons/hicolor/"$size"x"$size"/apps/xonotic.png
done
}
server() {
pkgdesc="$pkgdesc (Server)"
depends="xonotic"
mkdir -p "$subpkgdir"/usr/bin
install -Dm755 "$builddir"/source/darkplaces/darkplaces-dedicated \
"$subpkgdir"/usr/bin/xonotic-dedicated
}
sdl() {
pkgdesc="$pkgdesc (SDL client)"
depends="xonotic"
mkdir -p "$subpkgdir"/usr/bin
install -Dm755 "$builddir"/source/darkplaces/darkplaces-sdl \
"$subpkgdir"/usr/bin/xonotic-sdl
mkdir -p "$subpkgdir"/usr/share/applications
install -Dm644 "$srcdir"/xonotic-sdl.desktop \
"$subpkgdir"/usr/share/applications/xonotic-sdl.desktop
}
glx() {
pkgdesc="$pkgdesc (GLX client)"
depends="xonotic"
mkdir -p "$subpkgdir"/usr/bin
install -Dm755 "$builddir"/source/darkplaces/darkplaces-glx \
"$subpkgdir"/usr/bin/xonotic-glx
mkdir -p "$subpkgdir"/usr/share/applications
install -Dm644 "$srcdir"/xonotic-glx.desktop \
"$subpkgdir"/usr/share/applications/xonotic-glx.desktop
}
sha512sums="1a803f3ebd2e1c3a2000e6b7a6ec0ab3a64c92a9c7b41c329a5054a51bb624a790a84bd6b3a344a59f3bd7bf18feecec0b39e2ddfc116c52ad85d22731a0fba0 xonotic-0.8.2.zip
d74a1d1421dc68dbf46595510cea463382e69c8421110cd7b187419530dbfe9d262d9b65843b89b49aa91d9e32041e11941e411fe52f2dcb0ede18311ab821ec xonotic-moncontrol.patch
963273811453f713ab70f5d12b918c1513a9a7995cd1d2572f0b9060d945391bf7db4ae04ae586531ecf3a088f837803a66ac267d9285928d8b2e82c98b7158b xonotic-sdl.desktop
2e06d588d68d629a9690b4dd3372c7ad77b240afcd86cf0cdf2de15548d3feaa0e446df1a29339be4593d23bfcf389930bdd1d7021f1e2558d70bb15e28646bd xonotic-glx.desktop"
|