updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / caster-demo / PKGBUILD
blob54339892f08d89f9f086a639f96d30b8dee6f364
1 # Maintainer: jose <jose1711 [at] gmail (dot) com>
3 pkgname=caster-demo
4 pkgver=1.3.1
5 pkgrel=1
6 pkgdesc="an intense 3rd person action shooter with massive terrain deformation and explosive attacks (demo version)"
7 arch=('i686' 'x86_64')
8 url="http://elecorn.com/caster3d/"
9 license=("custom:free_demo")
10 install="caster-demo.install"
11 source=('caster-demo.desktop')
12 md5sums=('844c2728d0a31959876bbde3dbb4d151')
14 [ "$CARCH" = "i686"   ] && source=(${source[@]} "http://www.elecorn.com/caster3d/data/caster-1.3.1-i386-demo-installer.bin") && md5sums=(${md5sums[@]} 'f6cf4c1cab03f69a399108970cd77a93')
15 [ "$CARCH" = "x86_64" ] && source=(${source[@]} "http://www.elecorn.com/caster3d/data/caster-1.3.1-amd64-demo-installer.bin") && md5sums=(${md5sums[@]} '38f7e73507125319773bbc852ff75c9c')
17 noextract=('caster-1.3.1-i386-demo-installer.bin' 'caster-1.3.1-amd64-demo-installer.bin')
18 makedepends=('wget' 'unzip')
19 depends=('libx11' 'libpng12')
21 build() {
22 true
25 package() {
26   mkdir -p $pkgdir/usr/{share/caster-demo,bin}
27   cd $srcdir/
28   unzip *bin || true
29   cd data/caster_linux
30   /bin/tar cf - * | ( cd ../../../pkg/usr/share/caster-demo/; tar xfp - )
31 (echo "#!/bin/bash
32 cd /usr/share/caster-demo
33 ./caster.bin \"\$@\"") > $pkgdir/usr/bin/caster-demo
34   chmod 755 $pkgdir/usr/bin/caster-demo
35   install -D -m644 caster_icon.png $pkgdir/usr/share/pixmaps/caster_icon.png
36   install -D -m644 $srcdir/caster-demo.desktop $pkgdir/usr/share/applications/caster-demo.desktop