updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / crack-attack / PKGBUILD
blob4953395e0e0e2f2fa8f467fe3e4aeb4f10aab850
1 # Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com>
3 pkgname=crack-attack
4 pkgver=1.1.14
5 pkgrel=6
6 pkgdesc="A free OpenGL game based on the Super Nintendo classic Tetris Attack, with Fedora's patches"
7 arch=('i686' 'x86_64')
8 url="http://www.nongnu.org/crack-attack/"
9 license=("GPL")
10 depends=('gtk2' 'freeglut' 'sdl_mixer')
11 optdepends=('crack-attack-sounds: for sound effects and music')
12 source=(http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
13         crack-attack-1.1.14-glutInit.patch
14         crack-attack-1.1.14-audio.patch
15         crack-attack-1.1.14-gcc43.patch
16         crack-attack-1.1.14-audio-ppc.patch
18 md5sums=('262445024b0fca44508355242ea29d71' 
19          '75a884a0003521099b4bb417bfe8339b'
20          '6c42bef707937b3bede26dc83e865e74'
21          'b6a21f65d3579a6cf3c9e48cede0b012'
22          '1d24a261ea6b3a2d15328c3b7d9305d0')
24 build() {
25   cd $pkgname-$pkgver
26   patch -Np1 -i ../crack-attack-1.1.14-glutInit.patch
27   patch -Np1 -i ../crack-attack-1.1.14-audio.patch
28   patch -Np1 -i ../crack-attack-1.1.14-gcc43.patch
29   patch -Np1 -i ../crack-attack-1.1.14-audio-ppc.patch
31   ./configure --enable-sound=yes --prefix=/usr --mandir=/usr/share/man
32   make 
34 package(){  
35   cd $pkgname-$pkgver
36   make DESTDIR=$pkgdir install
37   
38   cd data
39   sed -i -e 's#Application;Games#Game;BlockGame#' crack-attack.desktop
40   install -D -m644 crack-attack.desktop $pkgdir/usr/share/applications/crack-attack.desktop
41   install -D -m644 crack-attack.xpm $pkgdir/usr/share/pixmaps/crack-attack.xpm