updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / cgmadness / PKGBUILD
blob8c2c1e7db440fa1648af548b4756909527e46397
1 # Maintainer: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=cgmadness
4 pkgver=1.2.2_xmas
5 _realver=1.2.2_Xmas
6 pkgrel=4
7 pkgdesc="Based on the classic game Marble Madness: Xmas Edition"
8 arch=(i686 x86_64)
9 depends=('freeglut' 'glew' 'libgl')
10 makedepends=('make')
11 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_realver}-src.tar.bz2 
12         cgmadness.desktop http://cgmadness.sourceforge.net/download.php?id=7
13         http://cgmadness.sourceforge.net/download.php?id=8
14         http://cgmadness.sourceforge.net/download.php?id=9)
15 url="http://cgmadness.sourceforge.net/"
16 license=('GPL')
17 md5sums=('9bd4e1d7f531342024b8251914ad845b' '2f0165307b27bca0ddca98a83713d51d'
18          'bef4464923d64f2798df42e8e27c743a' '917dd32fe9bc50594ef5495cc383f207'
19          'ddf3171ee4ef1612e06106a661f19362' )
21 build() {
22   cd ${srcdir}/${pkgname}
23   mkdir -p ${pkgdir}/usr/share/{applications,cgmadness}
24   make || return 1
25   cp -R {data,levels,cgmadness} ${pkgdir}/usr/share/cgmadness
26   chmod 777 ${pkgdir}/usr/share/cgmadness/levels
27   install ${srcdir}/cgmadness.desktop ${pkgdir}/usr/share/applications
28   install -D -m644 ${srcdir}/download.php?id=7 ${pkgdir}/usr/share/cgmadness/levels/gianko1.cgm
29   install -D -m644 ${srcdir}/download.php?id=8 ${pkgdir}/usr/share/cgmadness/levels/gianko2.cgm
30   install -D -m644 ${srcdir}/download.php?id=9 ${pkgdir}/usr/share/cgmadness/levels/gianko3.cgm