mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 17:22:07 +01:00
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
# Maintainer:
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
|
|
|
|
pkgname=teeworlds
|
|
pkgver=0.6.3
|
|
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://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() {
|
|
arch=noarch
|
|
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"
|