updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gfusion-demo / PKGBUILD
blob45ba1b7430714a2d4968bc7badd7560af0d6048d
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=gfusion-demo
4 pkgver=1
5 pkgrel=2
6 pkgdesc="Galcon Fusion is a high-paced multi-player galactic arcade-strategy game (demo)"
7 arch=('i686')
8 url="http://www.galcon.com/fusion/"
9 license=('custom:free_demo')
10 makedepends=('imagemagick' 'mesa')
11 depends=('sdl_image')
12 source=("http://www.galcon.com/fusion/files/gfusion.tgz" "gfusion-demo.desktop")
13 md5sums=('ad7781d4eadd9612a5fb6f026073e126'
14          'fb11aeb07b3ef6e26edba60ba0ec0eaf')
16 build() {
17 true
20 package() {
21   mkdir -p ${pkgdir}/usr/{bin,share/gfusion-demo/{data,bin}}
22   cd $srcdir/gfusion
23   install -D -m644 bin/libIrrKlang.so ${pkgdir}/usr/share/gfusion-demo/bin/libIrrKlang.so
24   install -D -m755 bin/sdlapp ${pkgdir}/usr/share/gfusion-demo/bin/sdlapp
25   install -D -m644 data/* ${pkgdir}/usr/share/gfusion-demo/data/
26   (echo "#!/bin/bash
27 cd /usr/share/gfusion-demo/bin
28 ./sdlapp \"\$@\"") > $pkgdir/usr/bin/gfusion-demo
29   chmod 755 $pkgdir/usr/bin/gfusion-demo
30   install -D -m644 $srcdir/gfusion-demo.desktop $pkgdir/usr/share/applications/gfusion-demo.desktop || return 1
31   convert data/icon32.bmp data/icon32.png
32   install -D -m644 data/icon32.png $pkgdir/usr/share/pixmaps/gfusion-demo.png || return 1