blob: 6b3405e52e234290f5c80291ef5673573ebcf002 (
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
|
# Maintainer: Slash <demodevil5[at]yahoo[dot]com>
pkgname=ezquake
pkgver=3.6.5
pkgrel=1
pkgdesc="One of the most Popular QuakeWorld clients for Linux/BSD/OSX/Win32. You need the retail pak files to play."
url="https://www.ezquake.com/"
license=('GPL-2.0-only')
depends=('curl' 'expat' 'jansson' 'libjpeg-turbo' 'libpng' 'minizip' 'openssl' 'sdl2' 'speex' 'speexdsp' 'libsndfile' 'pcre2' 'freetype2')
makedepends=('cmake' 'ninja')
conflicts=('ezquake-git' 'fuhquake')
provides=('quake' 'fuhquake')
arch=('x86_64')
install=ezquake.install
source=("https://github.com/QW-Group/ezquake-source/releases/download/${pkgver}/ezquake-source_with-submodules-${pkgver}.tar.gz"
'https://github.com/QW-Group/ezquake-source/releases/download/3.2.3/ezquake-ubuntu-3.2.3-full.tar.gz'
'ezquake.launcher' 'ezquake.desktop' 'ezquake.ico')
noextract=("ezquake-ubuntu-3.2.3-full.tar.gz")
b2sums=('86ea89354db3ed29787b5d1513719d0807c0198aa0599320bb9d15c6364a529571293f51454adfae2dc325d71a93824246e2da720545e5ad9e2e7dee15e5f2da'
'98840842ea783d6fe99081425fddc69cb5a1009ac43bbe8815f6ee6fe3365a8ea08b75dff9e48f6eda9d47c50b45bba53e879c8b0f63a949170c0b1e419710ae'
'2913e1a5cd3beed9858ba5762b6da170fc4ddc7ce429d78d029d8b45d17b9860144a15835742822f955d45329679ec1e9d99543dd130148c6d1abc46f7321d5c'
'1e1519b43c9ff3d71c0e71f679a02201848e0ffae7d668e20917ecd71c3007fe4b2b0b17edcb65e9d6f7780a97257fafcf3363e4d576249dd3afd592fb053a78'
'45640963258bd9abc7230229b2bbd2fb62ebc09650bd58371f2bb74168f6346d8ead508b8c7d92bc1960b8ed9bf6f922c2036e93ad9a2cd1551ce9d32dcbb425')
prepare() {
cd "${srcdir}/ezquake-${pkgver}/"
# pcre2 fix
# @see https://github.com/QW-Group/ezquake-source/issues/916
/usr/bin/sed -i '181s/const //' src/sv_mod_frags.c
}
build() {
cd "${srcdir}/ezquake-${pkgver}/"
# Commands from upstream build-linux.sh
cmake --preset dynamic
cmake --build build-dynamic --config Release
}
package() {
cd "${srcdir}"
# Create Destination Directories
install -d "${pkgdir}/opt/quake"
# Unpack ezQuake assets package (base)
bsdtar -x -o -C "${pkgdir}/opt/quake" -f "${srcdir}/ezquake-ubuntu-3.2.3-full.tar.gz"
# Clean up permissions in assets package
find "${pkgdir}/opt/quake" -type d -exec chmod 0755 "{}" \;
find "${pkgdir}/opt/quake" -type f -exec chmod 0644 "{}" \;
# Overwrite packaged binary with compiled one
mv -v "${srcdir}/ezquake-${pkgver}/ezquake-linux-x86_64" \
"${pkgdir}/opt/quake/"
# Make id1 Directory for pak0.pak and pak1.pak files
install -d "${pkgdir}/opt/quake/id1/"
# Make save game Directory with user group permissions
install -d -m775 -g users "${pkgdir}/opt/quake/qw/save/"
# Install Icon
install -D -m644 "${srcdir}/ezquake.ico" \
"${pkgdir}/usr/share/pixmaps/ezquake.ico"
# Install Launcher
install -D -m755 "${srcdir}/ezquake.launcher" \
"${pkgdir}/usr/bin/ezquake"
# Install Desktop
install -D -m644 "${srcdir}/ezquake.desktop" \
"${pkgdir}/usr/share/applications/ezquake.desktop"
}
|