aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-11-02 15:49:48 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-11-02 15:49:48 +0200
commit9f16f569fb84a213fe9267dabd2d8f6dbaec502d (patch)
tree88b5a0eb739b9e73b8ae86c642d70ac9e094c593 /unmaintained
parentb115eb45f2289ac64889d195c87873e24ccf11bb (diff)
downloadaports-9f16f569fb84a213fe9267dabd2d8f6dbaec502d.tar.bz2
aports-9f16f569fb84a213fe9267dabd2d8f6dbaec502d.tar.xz
unmaintained/teeworlds: moved from community
no longer builds with gcc6, and does not have maintainer
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/teeworlds/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/unmaintained/teeworlds/APKBUILD b/unmaintained/teeworlds/APKBUILD
new file mode 100644
index 0000000000..527e38cf0c
--- /dev/null
+++ b/unmaintained/teeworlds/APKBUILD
@@ -0,0 +1,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"