blob: 20ba1f48872125e261472da6acf78b1d9c4a823c (
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
# Maintainer: robertfoster
# Contributor: Gustavo6046
pkgbase=iortcw-git
pkgname=iortcw-git
pkgver=1.51c.r89.gbbd32eed
pkgrel=1
pkgdesc="Merge of ioquake3 features and fixes into Return to Castle Wolfenstein"
arch=('i686' 'x86_64')
url="https://github.com/iortcw/iortcw"
license=('GPL3')
depends=('freetype2' 'graphite' 'harfbuzz' 'iortcw-data' 'libjpeg-turbo' 'libogg' 'openal' 'opus' 'opusfile' 'pcre' 'sdl2' 'zlib')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
makedepends=('git')
source=("git+${url}"
'iortcw-ded.launcher'
'iortcw-sp.launcher'
'iortcw-mp.launcher'
'iortcw-sp.desktop'
'iortcw-mp.desktop'
)
pkgver() {
cd "${srcdir}/iortcw"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/iortcw"
# Build Single Player
cd SP
make USE_INTERNAL_LIBS=0
# Build Multi Player
cd ../MP
make USE_INTERNAL_LIBS=0
}
package() {
cd "${srcdir}/iortcw"
cd SP
make USE_INTERNAL_LIBS=0 \
COPYDIR="${pkgdir}/opt/iortcw" copyfiles
cd ../MP
make USE_INTERNAL_LIBS=0 \
COPYDIR="${pkgdir}/opt/iortcw" copyfiles
ln -s -r /opt/iortcw-data/pak0.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/sp_pak1.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pak0.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_bin.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pak1.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pak2.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pak3.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pak4.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pak5.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pakmaps0.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pakmaps1.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pakmaps2.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pakmaps3.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pakmaps4.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pakmaps5.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/mp_pakmaps6.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/sp_pak2.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/sp_pak3.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/sp_pak4.pk3 \
"${pkgdir}/opt/iortcw/main"
ln -s -r /opt/iortcw-data/openurl.sh \
"${pkgdir}/opt/iortcw/openurl.sh"
# Modify Launcher Scripts
if [ "$CARCH" = "x86_64" ]; then
# x86_64 Systems
TARGET=x86_64
else
# i686 Systems
TARGET=x86
fi
sed -i "s:ARCH:$TARGET:" \
"${srcdir}"/iortcw-sp.*
sed -i "s:ARCH:$TARGET:" \
"${srcdir}"/iortcw-mp.*
sed -i "s:ARCH:$TARGET:" \
"${srcdir}"/iortcw-ded.*
# Install Launcher Script (Single Player Client)
install -D -m 755 ${srcdir}/iortcw-sp.launcher \
"${pkgdir}/usr/bin/iortcw-sp"
# Install Launcher Script (Multi Player Client)
install -D -m 755 "${srcdir}/iortcw-mp.launcher" \
"${pkgdir}/usr/bin/iortcw-mp"
# Install Launcher Script (Dedicated Server)
install -D -m 755 "${srcdir}/iortcw-ded.launcher" \
"${pkgdir}/usr/bin/iortcw-ded"
# Install Desktop File (Single Player)
install -D -m 644 "${srcdir}/iortcw-sp.desktop" \
"${pkgdir}/usr/share/applications/iortcw-sp.desktop"
# Install Desktop File (Multi Player)
install -D -m 644 "${srcdir}/iortcw-mp.desktop" \
"${pkgdir}/usr/share/applications/iortcw-mp.desktop"
# Install Icon File (Single Player)
install -D -m 644 "${srcdir}/iortcw/SP/misc/iortcw.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/iortcw.svg"
}
sha256sums=('SKIP'
'4af024d025009cb3c39fb6137d10a417167c6b026f82e162aaea583d0b4934d2'
'ab55a395fa2e164f655cba91dd197d98697621d5cdd2cfb30e8f06f49fc2b5d2'
'13dacae097c252609e2931eb799d79e07da31403fb2b0b6cde16fa7237d8d3d7'
'43c7450c9c2c25051ae74b28a0b81ce17d1e9e6e33949954460a186ba6605257'
'f2beab09c7972625098c9166957cafe35b9ac1cc9ce8e59bd8c8bd2b173d851b')
|