aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/teeworlds/APKBUILD
blob: 527e38cf0ceef3277b18b66400d79cbea35081b0 (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
# Maintainer:
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>

pkgname=teeworlds
pkgver=0.6.3
pkgrel=0
arch="all !aarch64"
pkgdesc='Multiplayer 2D shooter'
url='https://www.teeworlds.com'
license='custom'
depends=
makedepends="python2 mesa-dev glu-dev sdl-dev freetype-dev alsa-lib-dev bam"
subpackages="$pkgname-server $pkgname-common::noarch"
source="https://downloads.teeworlds.com/teeworlds-$pkgver-src.tar.gz"

_builddir=""$srcdir"/$pkgname-$pkgver-src"

build() {
	cd $_builddir
	bam client_release server_release || return 1
}

package() {
	depends="$pkgname-common"
	cd $_builddir
	install -Dm755 teeworlds "$pkgdir"/usr/bin/teeworlds || return 1
}

server() {
	depends="$pkgname-common"
	cd $_builddir
	install -Dm755 teeworlds_srv "$subpkgdir"/usr/bin/teeworlds_srv || return 1
}

common() {
	cd $_builddir
	install -Dm644 license.txt \
		"$subpkgdir"/usr/share/licenses/teeworlds/LICENSE || return 1
	install -d "$subpkgdir"/usr/share/teeworlds/data || return 1
	cp -r data/* "$subpkgdir"/usr/share/teeworlds/data || return 1
}

md5sums="bbe9faa26caf796bcdffc4bc635118fd  teeworlds-0.6.3-src.tar.gz"
sha256sums="490ee7c372898761c609af8d7b0c6bd55942c6c6fcd7f361eefa00abfc70077b  teeworlds-0.6.3-src.tar.gz"
sha512sums="0c7ef6ca59e4b49f9e208f39e8b0edd76965d67848008af3a223cb7615a6c62ff433d3113f733ae4dafc364baf522d2f56255e058d26d9f5c48071cdde41526d  teeworlds-0.6.3-src.tar.gz"