blob: 7845a3f2024c3e836b9409c073aa1ccae94ff2b1 (
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
|
# Maintainer: Slash <demodevil5[at]yahoo[dot]com>
# Contributors: OttoA (AUR), hoschi (AUR), samlt (AUR), andreyv (AUR)
pkgname=ioquake3-git
pkgver=20180304.gd28e667e
pkgrel=1
pkgdesc="The de-facto OSS Quake 3 distribution. You need the retail/demo .pk3 files to play."
url="http://ioquake3.org/"
license=('GPL')
arch=('i686' 'x86_64' 'aarch64')
depends=('curl' 'freetype2' 'libjpeg' 'libvorbis' 'openal' 'opus' 'opusfile' 'sdl2' 'zlib')
makedepends=('git')
optdepends=('mumble: Mumble VoIP support')
conflicts=('quake3' 'quake3-icculus-svn' 'quake3-svn' 'ioquake3-svn')
provides=('quake3' 'ioquake3')
replaces=('quake3-icculus-svn' 'ioquake3-svn')
install=quake3.install
source=('quake3.desktop' 'quake3.png'
'http://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-1.32b-3.x86.run'
'quake3::git+https://github.com/ioquake/ioq3.git')
sha256sums=('12dbd31e9de1493642d120bfd1548dfc4935e47fec806003cfc04b9d84b85673'
'1ce9af6ee0055896c5e4ba07ccaa05da0809ea8d97f7b5ed9f7dda9127c6a8f7'
'c36132c5556b35e01950f1e9c646235033a5130f87ad776ba2bc7becf4f4f186'
'SKIP')
pkgver() {
cd "${srcdir}/quake3"
git log -1 --format="%cd.g%h" --date=short | sed 's/-//g'
}
prepare() {
cd "${srcdir}"
# Extract Patch Files
chmod +x "${srcdir}/linuxq3apoint-1.32b-3.x86.run"
"${srcdir}/linuxq3apoint-1.32b-3.x86.run" --tar xf
}
q3make() {
export CFLAGS+=" ${CPPFLAGS}"
make $@ \
BUILD_CLIENT=1 \
BUILD_SERVER=1 \
BUILD_BASEGAME=0 \
BUILD_MISSIONPACK=0 \
BUILD_GAME_SO=0 \
BUILD_GAME_QVM=0 \
BUILD_RENDERER_OPENGL2=1 \
DEFAULT_BASEDIR="/opt/quake3" \
FULLBINEXT='' \
GENERATE_DEPENDENCIES=0 \
OPTIMIZE='' \
USE_OPENAL=1 \
USE_OPENAL_DLOPEN=0 \
USE_CURL=1 \
USE_CURL_DLOPEN=0 \
USE_CODEC_VORBIS=1 \
USE_CODEC_OPUS=1 \
USE_FREETYPE=1 \
USE_MUMBLE=1 \
USE_VOIP=1 \
USE_INTERNAL_LIBS=0
}
build() {
cd "${srcdir}/quake3"
q3make
}
package() {
cd "${srcdir}/quake3"
# Create Destination Directories
install -d "${pkgdir}"/{usr/bin,/opt/quake3/{baseq3,missionpack,demoq3}}
# Install Files
q3make COPYDIR="${pkgdir}/opt/quake3" copyfiles
# Install Quake 3 Patch Files
install -m 644 "${srcdir}"/baseq3/*.pk3 \
"${pkgdir}/opt/quake3/baseq3/"
# Install Quake 3 Expansion Pack Patch Files
install -m 644 "${srcdir}"/missionpack/*.pk3 \
"${pkgdir}/opt/quake3/missionpack/"
# Link pk3 files to demoq3
ln -sf /opt/quake3/baseq3/pak{1..8}.pk3 "${pkgdir}/opt/quake3/demoq3/"
# Link Executables in /usr/bin
ln -sf "/opt/quake3/ioquake3" "${pkgdir}/usr/bin/quake3"
ln -sf "/opt/quake3/ioq3ded" "${pkgdir}/usr/bin/q3ded"
# Install systemd service file
install -D -m 644 "${srcdir}/quake3/misc/linux/q3a.service" \
"${pkgdir}/usr/lib/systemd/system/q3a.service"
# Patch systemd service file
sed -i -e "s@/usr/local/games/quake3/ioq3ded.x86_64@/opt/quake3/q3ded@" \
"${pkgdir}/usr/lib/systemd/system/q3a.service"
# Install Desktop File
install -D -m 644 "${srcdir}/quake3.desktop" \
"${pkgdir}/usr/share/applications/quake3.desktop"
# Install Icon File
install -D -m 644 "${srcdir}/quake3.png" \
"${pkgdir}/usr/share/pixmaps/quake3.png"
}
|