updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / balloons / PKGBUILD
blob3bb15292b7dcc40618ccbfcea57e51ea305f5fc8
1 # Maintainer: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=balloons
4 pkgver=0.1.8.3
5 pkgrel=3
6 pkgdesc="Tile based platform puzzle game."
7 arch=(i686 x86_64)
8 depends=('sdl_ttf' 'sdl_mixer' 'sdl_mixer')
9 makedepends=('make')
10 source=(http://downloads.sourceforge.net/balloons-ng/${pkgname}-0.1.8-3-src.tar.gz scoreList.diff 
11         balloons.desktop HIGH.DAT)
12 url="http://sourceforge.net/projects/balloons-ng/"
13 license=('GPL')
14 md5sums=('afdd815a7c2e9c4c007704473f089f7e' '5a9c8f36cfc63721c619805f533b8121' 
15          'be4c5e439a99c7ae25d3f13affb2b474' 'b9a6a247d322bba6c5bd4ff9427f91b8')
16 install=(balloons.install)
18 build() {
19   cd ${srcdir}/${pkgname}-0.1.8-3
20   patch -p0 < ${srcdir}/scoreList.diff
21   ./configure --prefix=/usr 
22   make || return 1
23   mkdir -p ${pkgdir}/usr/share/{balloons,applications}
24   cp -r data ${pkgdir}/usr/share/balloons/
25   install src/balloons ${pkgdir}/usr/share/balloons/
26   mkdir -p ${pkgdir}/usr/bin
27   echo "cd '/usr/share/balloons/' && ./balloons" > ${pkgdir}/usr/bin/balloons.sh
28   chmod a+x ${pkgdir}/usr/bin/balloons.sh
29   cp doc/*.gif ${pkgdir}/usr/share/balloons/data
30   install ${srcdir}/balloons.desktop ${pkgdir}/usr/share/applications
31   install ${srcdir}/HIGH.DAT ${pkgdir}/usr/share/balloons/data