updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / teeworlds-srv-catch16 / PKGBUILD
blobf9d55a984093247c451c3f578f19f4df70125bc1
1 #Maintainer: andy123 <ajs @ online.de>
3 pkgname=teeworlds-srv-catch16
4 pkgver=0.6
5 _ver=0.6.0
6 _name=teeworlds
7 _bamver=0.4.0
8 pkgrel=1
9 pkgdesc="A multiplayer 2D shooter's server mod"
10 arch=('i686' 'x86_64')
11 url="http://teeworlds.com"
12 license=('custom')
13 depends=('zlib')
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
21         ${pkgname})
23 md5sums=('4d6e5d0fb1b5f0bdf6c5c49714045ef1'
24          'f8b62ad553c3615a725a034df4fb4257'
25 #         '8ede709add8b6d60725cd60901a89651'
26 #         '004a7d6caf8b798874525400b37a9b05'
27 #         '2fc2f04329ba0905963e5319f255f7a1'
28          '0f60a8fa3faa36053e1663e3d8b3c28e')
30 build() {
31         # Build bam (used to build teeworlds)
32         cd ${srcdir}/bam-${_bamver}
33         ./make_unix.sh
35         # getting the source
36         cd ${srcdir}
37         if [ -d teeworlds${pkgver}_catch16 ]; then 
38                 cd teeworlds${pkgver}_catch16
39                 # is this right?
40                 hg update
41         else hg clone https://bitbucket.org/guillaumeclaret/teeworlds${pkgver}_catch16
42         fi      
43         
44         # "patching"
45         cp -r ${srcdir}/teeworlds0.6_catch16/* ${srcdir}/${_name}-${_ver}-source/src/
46         
47         # compiling
48         cd ${srcdir}/${_name}-${pkgver}.0-source/
49         sed -i 's/python /python2 /' bam.lua
50         ../bam-${_bamver}/bam server_release
53 package() {
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}