1 #Maintainer: andy123 <ajs @ online.de>
3 pkgname=teeworlds-zcatch-server
7 pkgdesc="A multiplayer 2D shooter's server mod"
9 url="http://www.teeworlds.com/forum/viewtopic.php?id=7958"
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
21 sha1sums=('5dad113e38ba89384d842655eb477834285c216b'
22 '2a4f2b933b7e0da7a85c94d1453216154c8de143'
23 'de63eb6a7315439f4c080d4e6a504145bdd336f3'
24 '6735f6b87164d79c8a133fbc1142255911d4a4df'
25 '5c0f261f5c8649e122bb60905eb80a9c3078ef0a'
26 '265b1985997517a8f94604fef39dda4eccb941cb'
27 '8782e162aa5f9e32669191457410067fb3a64acb'
28 '0efbeaa64746d1e06a99b6a8c5b100c45242bfa4')
31 # Build bam (used to build teeworlds)
32 # Now it is released separately I should make a separate package...
33 cd ${srcdir}/bam-${_bamver}
36 # Extract zcatch source
38 unzip -o zcatch-src-${pkgver}final.zip
41 cd ${srcdir}/zcatch0.6final
44 sed -i 's/python /python2 /' bam.lua
46 ../bam-${_bamver}/bam server_release
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/
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