aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/urbanterror/APKBUILD
blob: 3d3e2660cf6a6399b4806b8fa04d516fa1f609aa (plain) (blame)
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
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=urbanterror
pkgver=4.3.4
pkgrel=0
pkgdesc="fast-paced hollywood-tactical shooter: fun over realism"
url="http://urbanterror.info/"
arch="all"
license="GPL-2.0-only"
makedepends="curl-dev libvorbis-dev libx11-dev libxxf86vm-dev sdl-dev urbanterror-data"
source="$pkgname-$pkgver.tar.gz::https://github.com/FrozenSand/ioq3-for-UrbanTerror-4/archive/release-$pkgver.tar.gz
	patch-Makefile.patch
	patch-musl.patch"
builddir="$srcdir/ioq3-for-UrbanTerror-4-release-$pkgver"
options="!check" # No tests

build() {
	make \
		USE_CURL=1 \
		USE_CURL_DLOPEN=0 \
		USE_CODEC_VORBIS=1 \
		DEFAULT_BASEDIR="/usr/share/$pkgname" \
		release
}

package() {
	install -Dm755 build/release-linux/Quake3-UrT "$pkgdir"/usr/bin/urbanterror
	install -Dm755 build/release-linux/Quake3-UrT-Ded "$pkgdir"/usr/bin/urbanterror-ded
}

sha512sums="50b44f80de3a71b176a092ea0248fcb797564a8a5913b4c39b5b22068a259978c25102741c3bd247fc97e202f658b9b79c7160818e7f578cb2abe8bccbe70341  urbanterror-4.3.4.tar.gz
0ec2e54b344258386ed5f658f29f7f96a4457a569d119d99a6968995a3fed8f11af36af3185b740eae656f9da6d2ff55956832b98b2fec496ab7ee4fd1bb9ee6  patch-Makefile.patch
57bbcc62b30575bd3d48699e9e0dc3db688f919632d851a2f6cd049b09ba414fead036713431a25502775a3af628e727d694381206b0c73b5adc2132fcb2bda4  patch-musl.patch"