updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / teeworlds-zcatch-server / PKGBUILD
blobed03270fd806b6c18630e1b0c591b1dfbb6f666c
1 #Maintainer: andy123 <ajs @ online.de>
3 pkgname=teeworlds-zcatch-server
4 pkgver=0.4.1
5 _bamver=0.4.0
6 pkgrel=1
7 pkgdesc="A multiplayer 2D shooter's server mod"
8 arch=('i686' 'x86_64')
9 url="http://www.teeworlds.com/forum/viewtopic.php?id=7958"
10 license=('custom')
11 depends=('zlib')
12 makedepends=('python2' 'unzip')
13 source=(https://github.com/downloads/matricks/bam/bam-${_bamver}.tar.bz2
14         http://pixelbanane.de/yafu/2438010776/zcatch-src-${pkgver}final.zip
15         http://pixelbanane.de/yafu/3706005946/lightcatch.map
16         http://pixelbanane.de/yafu/1746469715/ctf_nephtys.map
17         http://pixelbanane.de/yafu/3266172569/juglecatch.map
18         http://pixelbanane.de/yafu/2333573102/grasscatch.map
19         http://pixelbanane.de/yafu/3832214070/dm1_catch.map
20         rc.d)
21 sha1sums=('5dad113e38ba89384d842655eb477834285c216b'
22           '2a4f2b933b7e0da7a85c94d1453216154c8de143'
23           'de63eb6a7315439f4c080d4e6a504145bdd336f3'
24           '6735f6b87164d79c8a133fbc1142255911d4a4df'
25           '5c0f261f5c8649e122bb60905eb80a9c3078ef0a'
26           '265b1985997517a8f94604fef39dda4eccb941cb'
27           '8782e162aa5f9e32669191457410067fb3a64acb'
28           '0efbeaa64746d1e06a99b6a8c5b100c45242bfa4')
30 build() {
31         # Build bam (used to build teeworlds)
32         # Now it is released separately I should make a separate package...
33         cd ${srcdir}/bam-${_bamver}
34         ./make_unix.sh
36         # Extract zcatch source
37         cd ${srcdir}/
38         unzip -o zcatch-src-${pkgver}final.zip
40         # Build zcatch
41         cd ${srcdir}/zcatch0.6final
43         # Use Python 2
44         sed -i 's/python /python2 /' bam.lua
46         ../bam-${_bamver}/bam server_release
49 package() {
50         mkdir -p ${pkgdir}/usr/share/${_name}/data/maps
51         cp ${srcdir}/{ctf_nephtys.map,juglecatch.map,grasscatch.map,dm1_catch.map,lightcatch.map} ${pkgdir}/usr/share/${_name}/data/maps/
52         
53         install -Dm755 ${srcdir}/zcatch0.6final/zcatch ${pkgdir}/usr/bin/$pkgname
54         install -Dm644 ${srcdir}/zcatch0.6final/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
55         install -Dm755 ${srcdir}/rc.d ${pkgdir}/etc/rc.d/$pkgname