blob: b2a91e01e13e8d14239710580b02a361a5ed0a37 (
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
|
# Maintainer: Slash <demodevil5 [at] yahoo [dot] com>
pkgname=quake4
pkgver=1.4.2
pkgrel=5
pkgdesc="Quake 4 Engine. You need the retail .pk4 files to play."
url="https://web.archive.org/web/20061205073314/http://www.idsoftware.com/games/quake/quake4/"
license=('custom:"Quake 4"' \
'custom:"PunkBuster"')
depends_x86_64=('lib32-glibc' 'lib32-sdl' 'lib32-libx11' 'lib32-libxext' 'lib32-zlib')
optdepends_x86_64=('lib32-nvidia-utils: Accelerated 3D with the NVIDIA binary blob video driver'
'lib32-catalyst-utils: Accelerated 3D with the AMD/ATI binary blob video driver')
depends_i686=('gcc-libs' 'libgl' 'sdl' 'zlib')
arch=('i686' 'x86_64')
install=quake4.install
source=('quake4.desktop' 'quake4.launcher' 'quake4-dedicated.launcher' 'quake4-smp.launcher' 'quake4.png' \
"https://aur.slashbunny.com/quake4/quake4-linux-${pkgver}.x86.run")
sha256sums=('eb12f3832213af66eceb3a1639605522d10f7169b0a093b7892738bcab04dcf6'
'667992139f08d3496c96ac02d15b830370ae14bcc15cc8e65ded4c58036d3f23'
'cfb3353c8c9d8be8a9a32ba05a48dca7c2125cef20159b85de7135c78a950e73'
'62ba170609ca961430e39f7a24e23e1a3b28376e42f779e7e28714868d7758d1'
'8bb8443f1f95e399ed16f8ae5c56a580185958d49ec1c8ecb29931bcbaa1bf79'
'9203b387b1a4075a1b9ad1eb7be32b49a88141a448d9330d9cbe1f40a145bd6a')
package() {
cd "${srcdir}"
# Create Destination Directories
install -d "${pkgdir}/opt/"
# Make Installer Executable
chmod +x "${srcdir}/quake4-linux-${pkgver}.x86.run"
# Extract Files from Installer
"${srcdir}/quake4-linux-${pkgver}.x86.run" --noexec --target quake4
# Move pk4 files to correct location
mv "${srcdir}/quake4/us/q4base/"*.pk4 \
"${srcdir}/quake4/q4base/"
# Move Executables and Libraries
install -m 755 -t "${srcdir}/quake4/" \
"${srcdir}/quake4/bin/Linux/x86/"{lib*,q4ded*,quake4*}
# Make Everything World-Readable
chmod -R a+r "${srcdir}/quake4/"
# Remove Unneeded Files
rm -rf "${srcdir}/quake4/"{germany/,setup.data/,setup.sh,us/,bin/}
# Move Quake4 to Destination Directory
mv "${srcdir}/quake4" "${pkgdir}/opt/"
# Install Launcher (Client)
install -D -m 755 "${srcdir}/quake4.launcher" \
"${pkgdir}/usr/bin/quake4"
# Install Launcher (Client - SMP)
install -D -m 755 "${srcdir}/quake4-smp.launcher" \
"${pkgdir}/usr/bin/quake4-smp"
# Install Launcher (Server)
install -D -m 755 "${srcdir}/quake4-dedicated.launcher" \
"${pkgdir}/usr/bin/quake4-dedicated"
# Install License (Quake 4)
install -D -m 644 "${pkgdir}/opt/quake4/License.txt" \
"${pkgdir}/usr/share/licenses/quake4/License.txt"
# Install License (PunkBuster)
install -D -m 644 "${pkgdir}/opt/quake4/pb/PBEULA.txt" \
"${pkgdir}/usr/share/licenses/quake4/PBEULA.txt"
# Install Desktop File
install -D -m 644 "${srcdir}/quake4.desktop" \
"${pkgdir}/usr/share/applications/quake4.desktop"
# Install Icon File
install -D -m 644 "${srcdir}/quake4.png" \
"${pkgdir}/usr/share/pixmaps/quake4.png"
# Remove breaking local libraries
rm ${pkgdir}/opt/quake4/{libgcc_s.so.1,libstdc++.so.6}
}
|