updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / csmash / PKGBUILD
blob201d3b44aa998c3cdaaa3aedcbf722ee08a59bc4
1 # Contributor: TryA <tryagainprod@gmail.com>
2 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
4 pkgname=csmash
5 pkgver=0.6.6
6 pkgrel=3
7 pkgdesc="A 3D table tennis game"
8 arch=('i686' 'x86_64')
9 url="http://cannonsmash.sourceforge.net"
10 license=('GPL')
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')
21 build() {
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
27   make
30 package() {
31   cd "$srcdir/$pkgname-$pkgver"
32   make DESTDIR="$pkgdir" install