1 #Maintainer: andy123 <ajs @ online.de>
3 pkgname=teeworlds-srv-catch16
9 pkgdesc="A multiplayer 2D shooter's server mod"
10 arch=('i686' 'x86_64')
11 url="http://teeworlds.com"
14 makedepends=('mercurial' 'python2')
15 replaces=('teeworlds-srv-tcatch')
16 source=(http://www.teeworlds.com/files/${_name}-${_ver}-src.tar.gz
17 https://github.com/downloads/matricks/bam/bam-${_bamver}.tar.bz2
18 # http://download.tee-page.de/modifications/catching/2_0/junglecatch.map
19 # http://download.tee-page.de/modifications/catching/3_1/grasscatch.map
20 # http://download.tee-page.de/modifications/catching/2_0/dm1_catch.map
23 md5sums=('4d6e5d0fb1b5f0bdf6c5c49714045ef1'
24 'f8b62ad553c3615a725a034df4fb4257'
25 # '8ede709add8b6d60725cd60901a89651'
26 # '004a7d6caf8b798874525400b37a9b05'
27 # '2fc2f04329ba0905963e5319f255f7a1'
28 '0f60a8fa3faa36053e1663e3d8b3c28e')
31 # Build bam (used to build teeworlds)
32 cd ${srcdir}/bam-${_bamver}
37 if [ -d teeworlds${pkgver}_catch16 ]; then
38 cd teeworlds${pkgver}_catch16
41 else hg clone https://bitbucket.org/guillaumeclaret/teeworlds${pkgver}_catch16
45 cp -r ${srcdir}/teeworlds0.6_catch16/* ${srcdir}/${_name}-${_ver}-source/src/
48 cd ${srcdir}/${_name}-${pkgver}.0-source/
49 sed -i 's/python /python2 /' bam.lua
50 ../bam-${_bamver}/bam server_release
54 mkdir -p ${pkgdir}/usr/share/${_name}/data/maps
55 cp ${srcdir}/*.map ${pkgdir}/usr/share/${_name}/data/maps
57 install -Dm755 ${srcdir}/${_name}-${_ver}-source/${_name}_srv ${pkgdir}/usr/bin/${pkgname}
58 install -Dm644 ${srcdir}/${_name}-${_ver}-source/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
59 install -Dm755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname}