aboutsummaryrefslogtreecommitdiffstats
path: root/main/teeworlds/APKBUILD
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-10-12 21:55:02 +0200
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-10-12 21:55:02 +0200
commit551b1b08e1b91e7300125deb97f5a1e8f3b305d4 (patch)
tree45cd31c89f31a3440d046101b5be22f7abb98706 /main/teeworlds/APKBUILD
parent688dcc619a5b29d49dc58745f88823552d71d2db (diff)
downloadaports-551b1b08e1b91e7300125deb97f5a1e8f3b305d4.tar.bz2
aports-551b1b08e1b91e7300125deb97f5a1e8f3b305d4.tar.xz
testing/teeworlds: move to main
Diffstat (limited to 'main/teeworlds/APKBUILD')
-rw-r--r--main/teeworlds/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/teeworlds/APKBUILD b/main/teeworlds/APKBUILD
new file mode 100644
index 0000000000..0caa9802bc
--- /dev/null
+++ b/main/teeworlds/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer:
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
+
+pkgname=teeworlds
+pkgver=0.6.2
+pkgrel=0
+arch=all
+pkgdesc='Multiplayer 2D shooter'
+url='https://www.teeworlds.com'
+license='custom'
+depends=
+makedepends='python mesa-dev glu-dev sdl-dev freetype-dev alsa-lib-dev bam'
+subpackages="$pkgname-server $pkgname-common"
+source="https://www.teeworlds.com/files/$pkgname-$pkgver-source.tar.gz"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver-source
+ bam client_release server_release || return 1
+}
+
+package() {
+ depends="$pkgname-common"
+
+ cd "$srcdir"/$pkgname-$pkgver-source
+ install -Dm755 teeworlds "$pkgdir"/usr/bin/teeworlds || return 1
+}
+
+server() {
+ depends="$pkgname-common"
+
+ cd "$srcdir"/$pkgname-$pkgver-source
+ install -Dm755 teeworlds_srv "$subpkgdir"/usr/bin/teeworlds_srv || return 1
+}
+
+common() {
+ arch=noarch
+
+ cd "$srcdir"/$pkgname-$pkgver-source
+ 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="649f6c05a7b117096b238c07062edc39 teeworlds-0.6.2-source.tar.gz"
+sha256sums="00061b30377597a61810eda3dc5de0caad439ca851cb8eebbe4152e4f861e2af teeworlds-0.6.2-source.tar.gz"
+sha512sums="e08db7a8eabe2f04c543ecf1abc2f51b513a06812581cf8c396fc8bd7e038ce09c46f73bfea80e295affded96c511ef74d47a14dd03fd0aac05487a46f380839 teeworlds-0.6.2-source.tar.gz"