updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / teeworlds_srv / PKGBUILD
blob3ef3dee644370e04459450652c262fb05536c68d
1 # Contributor: Allan McRae <allan@archlinux.org>
2 # Contributor: Armin 'IsSuE' Praher [issue.at.gmx.dot.at]
3 # Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
4 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgname=teeworlds_srv
7 pkgver=0.6.0
8 _bamver=0.2.0
9 pkgrel=1
10 pkgdesc="A multiplayer 2D shooter - server only"
11 arch=('i686' 'x86_64')
12 url="http://teeworlds.com"
13 license=('custom')
14 depends=()
15 makedepends=('python2' 'bam')
16 replaces=('teewars_srv')
17 conflicts=('teeworlds')
18 source=(http://www.teeworlds.com/files/teeworlds-${pkgver}-src.tar.gz)
19 md5sums=('4d6e5d0fb1b5f0bdf6c5c49714045ef1')
21 build() {
22         # Build teeworlds
23         cd ${srcdir}/teeworlds-${pkgver}-source
25         bam server_release
28 package() {
29         cd ${srcdir}/teeworlds-${pkgver}-source
31         # Install data files
32         mkdir -p ${pkgdir}/usr/share/teeworlds/data
33         cp -r ${srcdir}/teeworlds-${pkgver}-source/data/* \
34                 ${pkgdir}/usr/share/teeworlds/data
36         install -Dm755 ${srcdir}/teeworlds-${pkgver}-source/${pkgname} \
37                 ${pkgdir}/usr/bin/${pkgname}
39         install -Dm644 ${srcdir}/teeworlds-${pkgver}-source/license.txt \
40                 ${pkgdir}/usr/share/licenses/teeworlds/license.txt