updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / tomatoes / PKGBUILD
blob955330f487b021677865a37c35998945919cf9d0
1 # Contributor: Loui Chang <louipc dot ist at no spam gmail company>
3 pkgname=tomatoes
4 pkgver=1.55
5 pkgrel=9
6 pkgdesc="How many tomatoes can you smash in ten short minutes?"
7 url="http://tomatoes.sourceforge.net"
8 license=('ZLIB')
9 arch=('i686' 'x86_64')
10 depends=('sdl_image' 'sdl_mixer' 'mesa')
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-linux-src-$pkgver.tar.bz2
12         http://downloads.sourceforge.net/$pkgname/$pkgname-linux-1.5.tar.bz2
13         0001-tomatoes-1.55-makefile-Append-to-compile-flags.patch
14         0002-tomatoes-1.55-Quell-const-char-conversion-warnings.patch
15         config.cfg)
16 md5sums=('b0fa201bfb55d1cb402c52ab7e743086'
17          'a6a7ff71bb1098fd0a4098fd3d846339'
18          '0f8be747f785b6245d421ff4d66bf886'
19          'b7080141d1f849bfefc894b8790b6add'
20          '77a32d3e47dbadf52814728fe01c402e')
22 build() {
23         cd $srcdir/$pkgname-$pkgver
24         patch -p1 < ../0001-tomatoes-1.55-makefile-Append-to-compile-flags.patch
25         patch -p1 < ../0002-tomatoes-1.55-Quell-const-char-conversion-warnings.patch
27         make MPKDIR=/usr/share/tomatoes/ MUSICDIR=/usr/share/tomatoes/music/ \
28                 CONFIGDIR=/usr/share/tomatoes/ OVERRIDEDIR=./ || return 1
30         mkdir -p $pkgdir/usr/share/$pkgname
32         cp -R $srcdir/$pkgname-1.5/* \
33                 $pkgdir/usr/share/$pkgname
35         # Change special key to right ctrl for altgr users and others.
36         cp $srcdir/config.cfg $pkgdir/usr/share/$pkgname
38         mkdir -p $pkgdir/usr/bin
39         install $srcdir/$pkgname-$pkgver/$pkgname \
40                 $pkgdir/usr/bin/$pkgname
42         install -m644 $srcdir/$pkgname-$pkgver/icon.png \
43                 $pkgdir/usr/share/$pkgname/icon.png