updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / battlejump / PKGBUILD
blob95f21febbc9de43761ae95f61ed35f70341af660
1 # Maintainer: Vincent Debarre <vinilox@vinilox.eu>
3 pkgname=battlejump
4 pkgver=0.12.0
5 pkgrel=9
6 pkgdesc="Arcade game inspired by Monster Farm Jump."
7 [ "$CARCH" = "i686"   ] && ARCH=x86
8 [ "$CARCH" = "x86_64" ] && ARCH=x64
9 arch=('i686' 'x86_64')
10 url="http://www.battlejump.com" 
11 license="cc-by-nc-sa"
12 depends=('sdl' 'sdl_mixer' 'sdl_image' 'sdl_ttf' 'curl' 'java-runtime')
13 source=(http://www.battlejump.com/Download/Battle_Jump_v0122_Linux_${ARCH}.tar.gz battlejumplauncher.desktop battlejump.desktop)
14 md5sums=(264e973bf5ca043c83ecb85dab5b1386 b15ded254e76fde81cfafbae97da812a e27233098a9d454adf2eae4767cfb076)
15 [ "$CARCH" = "x86_64" ]  && md5sums=(4c8c3b0dab9d9b9295b5134dc2c79944 b15ded254e76fde81cfafbae97da812a e27233098a9d454adf2eae4767cfb076)
18 build() { 
19         cd ${srcdir}/Battle*
20         mkdir -p ${pkgdir}/usr/bin
21         mkdir -p ${pkgdir}/usr/share/{battlejump,applications}
22         cp -R * ${pkgdir}/usr/share/battlejump 
23         chmod 755 -R ${pkgdir}/usr/share/battlejump
24         echo "cd '/usr/share/battlejump/' && ./BattleJumpLauncher" > ${pkgdir}/usr/bin/battlejumplauncher
25         echo "cd '/usr/share/battlejump/' && ./BattleEditor" > ${pkgdir}/usr/bin/battlejumpeditor
26         echo "cd '/usr/share/battlejump/' && ./BattleJump" > ${pkgdir}/usr/bin/battlejump
27         echo "cd '/usr/share/battlejump/' && ./BattleJumpLevelManager" > ${pkgdir}/usr/bin/battlejumplevelmanager
28         chmod +x ${pkgdir}/usr/bin/*
29         chmod 777 ${pkgdir}/usr/share/battlejump/Data/*dat
30         install ${srcdir}/*.desktop ${pkgdir}/usr/share/applications