1 # Contributor: TryA <tryagainprod@gmail.com>
2 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
7 pkgdesc="A 3D table tennis game"
9 url="http://cannonsmash.sourceforge.net"
11 depends=('libxmu' 'gtk2' 'mesa' 'sdl_image' 'sdl_mixer')
12 source=(http://prdownloads.sourceforge.net/cannonsmash/$pkgname-$pkgver.tar.gz
13 http://kambing.ui.ac.id/gentoo-portage/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch
14 http://kambing.ui.ac.id/gentoo-portage/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch
15 http://kambing.ui.ac.id/gentoo-portage/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch)
16 md5sums=('bcf2eddd0f04d58e5dac6d767f41d9af'
17 '2ffbd16a7577ab027afa03466bff1ad6'
18 '112758236b8f2e754e515d821380787e'
19 '76dd644fdfc4521c420f0f63d3365f29')
22 cd "$srcdir/$pkgname-$pkgver"
23 patch -p0 < ../cannonsmash-0.6.6-gcc41.patch
24 patch -p0 < ../cannonsmash-0.6.6-sizeof-cast.patch
25 patch -p0 < ../cannonsmash-0.6.6-x-inc.patch
26 ./configure --prefix=/usr --with-sdl-prefix=/usr --disable-sdltest
31 cd "$srcdir/$pkgname-$pkgver"
32 make DESTDIR="$pkgdir" install