blob: 0f4888e1d880114b2717fafd0b49a5c3f3c61ef3 (
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
|
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributors: Frederic Bezies, Ronan Rabouin, Yamashiro <dev cosmicheron com>
pkgname='yamagi-quake2'
pkgver=8.41
pkgrel=1
pkgdesc='Enhanced Quake II engine optimized for modern systems'
url='https://www.yamagi.org/quake2/'
arch=('i686' 'x86_64' 'aarch64')
license=('Info-ZIP' 'GPL-2.0-only')
depends=('glibc' 'libglvnd' 'sdl2')
optdepends=('curl: http download support'
'openal: alternative audio backend'
'quake2-data: game files'
'quake2-demo: shareware data files')
makedepends=('openal' 'mesa' 'curl')
install="${pkgname}.install"
source=("https://deponie.yamagi.org/quake2/quake2-${pkgver}.tar.xz"
"${pkgname}.desktop")
sha512sums=('42870ace797146b2913669cea796b7e5525178078274eac6011183bab90df217fd4aa1c5b7232275b6a0d05a488bd4af6e9757c9f40194a33c7512c56c2caa53'
'540b400c0b912138f43fc9bf2a7db9cf2d1b3100ccbcd6bb1efb00332abaf97ec3b91fa924d8ed21f511fe547a6f994dc301a5ed535a962230cb73d1ed2ee764')
build() {
make -C "quake2-${pkgver}" WITH_RPATH=no WITH_SYSTEMWIDE=yes
}
package() {
cd "quake2-${pkgver}"
# client + server binaries, renderer libraries
install -Dm755 -t "${pkgdir}/usr/lib/${pkgname}" release/{quake2,q2ded}
install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}" release/*.so
# symlinks to make the commands available
install -d "${pkgdir}/usr/bin"
ln -s "/usr/lib/${pkgname}/quake2" "${pkgdir}/usr/bin/${pkgname}"
ln -s "/usr/lib/${pkgname}/q2ded" "${pkgdir}/usr/bin/yamagi-q2ded"
# game library
install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}/baseq2" 'release/baseq2/game.so'
# shared game directory
install -d "${pkgdir}/usr/share/games/quake2"
echo "You can put Quake 2 game files here." > "${pkgdir}/usr/share/games/quake2/README"
# doc
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'stuff/yq2.cfg' doc/*.md
# desktop entry
install -Dm644 -t "${pkgdir}/usr/share/applications" "../${pkgname}.desktop"
install -Dm644 'stuff/icon/Quake2.png' "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
# licenses
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|