updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / tong / PKGBUILD
blob5ff254d5cf2b606c3812fae498bb0eb07e3f58f5
1 # Contributor: Petr Malat <petris@penguin.cz> 
2 pkgname=tong
3 packager=petris
4 license=GPL
5 pkgver=1.0
6 pkgrel=1
7 pkgdesc="Tetris and Pong are classics, addictive and unshakable from their places in gaming history. TONG is the result of mixing the two, capitalizing on the essential qualities of each classic and adding new twists of its own to make an explosive chemical reaction out of it all"
8 url="http://www.nongnu.org/tong/"
9 depends=('sdl' 'sdl_image' 'sdl_mixer')
10 source=(http://www.nongnu.org/tong/$pkgname-$pkgver.tar.gz)
11 md5sums=('9f358a012639de1a5a8d3e0b323438de')
13 build() {
14         cd $startdir/src/$pkgname-$pkgver
15         make || return 1
16         mkdir -p $startdir/pkg/usr/share/$pkgname
17         mkdir -p $startdir/pkg/usr/bin
18         cp -r tong media $startdir/pkg/usr/share/$pkgname
19         cat > $startdir/pkg/usr/bin/$pkgname << EOF
20 #!/bin/sh
21 cd /usr/share/$pkgname
22 exec ./$pkgname
23 EOF
24         chmod +x $startdir/pkg/usr/bin/$pkgname