blob: 1924de7b97c7fa1ddd4352f77014c9635f3c6eb2 (
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
|
# $Id: PKGBUILD 211456 2017-02-09 14:01:34Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: grimi <grimi at poczta dot fm>
pkgname=urbanterror
pkgver=4.3.4
pkgrel=1
epoch=1
pkgdesc="A team-based tactical shooter based on the Quake 3 Engine"
arch=('x86_64')
url="http://www.urbanterror.info"
license=('GPL2')
depends=('sdl' 'openal' 'curl')
backup=('opt/urbanterror/q3ut4/server.cfg' 'opt/urbanterror/q3ut4/mapcycle.txt')
makedepends=('mesa')
source=("http://www.happyurtday.com/releases/4x/UrbanTerror${pkgver//.}_full.zip"
"urbanterror.sh"
"urbanterror-server.sh"
"urbanterror.desktop"
"urbanterror.png")
sha512sums=('4debd6f998943cf9944ed891a3d1f3fa7d016d181d7af7cd5c28690bcd765928b4befc3f3705a4315bfa709acdd34160ed8f2d7437a54cfd10f6c48fea60af39'
'd296cee59c9a344b03485b2400278f05d4a4edd8f782f72b10857d4654d46ff1b6f181c51abb5a718d6b4a7227601d67fb2ba2b3fe7876bfec17b7c9827525a0'
'6f444b1203b8c1a66c86a2112f3565059ba1135940cef37208ea05933290e1b3b9d8325c7fc86466fd8646338c8deaa168a22049104bda0631eab76a21a77e51'
'33cb13820002f6620075143a1729018caf70a7cceb9b606db295fd621833add127474f1399626d722a3a8a7d9ba001b6dada4ca877ec87251a32d616367991d4'
'aad7cf50335d7d1a1bcb03be0cf52f8e8214e91d7ff1c76045ffed57ba599023468341a3ae07abb8b06ef2857deeae8610defdd2dc8a3e5fb48eeb3ca2033074')
package() {
install -d "${pkgdir}/opt/urbanterror"
cd "${pkgdir}/opt/urbanterror"
# Copy binaries.
install -m755 "${srcdir}/UrbanTerror43/Quake3-UrT.x86_64" urbanterror
install -m755 "${srcdir}/UrbanTerror43/Quake3-UrT-Ded.x86_64" urbanterror-ded
# Copy data
cp -r "${srcdir}/UrbanTerror43/q3ut4" "${pkgdir}/opt/urbanterror/q3ut4"
install -Dm644 "${srcdir}/UrbanTerror43/q3ut4/readme43.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
echo -e "\nseta cl_cURLLib \"/usr/lib/libcurl.so.4\"" >> "${pkgdir}/opt/urbanterror/q3ut4/autoexec.cfg"
# Copy desktop launcher.
install -Dm644 "${srcdir}/urbanterror.desktop" "${pkgdir}/usr/share/applications/urbanterror.desktop"
install -Dm644 "${srcdir}/urbanterror.png" "${pkgdir}/usr/share/pixmaps/urbanterror.png"
# Copy launch scripts.
install -Dm755 "${srcdir}/urbanterror.sh" "${pkgdir}/usr/bin/urbanterror"
install -Dm755 "${srcdir}/urbanterror-server.sh" "${pkgdir}/usr/bin/urbanterror-server"
}
# vim: sw=2:ts=2 et:
|