updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / retropong / PKGBUILD
blob0f3300cacdf3c003637c1ec4bd25f0156d6fec3a
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=retropong
4 pkgver=1.0
5 pkgrel=2
6 pkgdesc="a simple pong remake"
7 arch=('i686' 'x86_64')
8 license=('GPL2')
9 url="http://sourceforge.net/projects/retropong/"
10 source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}.tar.gz" "retropong.desktop")
11 depends=('sdl_mixer' 'sdl_ttf' 'bash')
12 md5sums=('cf5b70d1960419261530152243ee60d0'
13          'e065c2ebfa1d76cddc163811d1fb8fba')
15 build() {
16     cd $srcdir/$pkgname
17     gcc -o retropong -lSDL -lSDL_mixer -lSDL_ttf retropong.c
20 package() {
21     cd $srcdir/$pkgname
22     install -D -m755 ./retropong $pkgdir/usr/share/retropong/retropong
23     install -D -m644 ./retrofont.ttf $pkgdir/usr/share/retropong/retrofont.ttf
24     install -D -m644 ./*wav $pkgdir/usr/share/retropong/
25     echo -e "#"'!'"/bin/bash\ncd /usr/share/retropong/\n./retropong" >./retropong.sh
26     install -D -m755 ./retropong.sh $pkgdir/usr/bin/retropong
27     install -D -m644 $srcdir/retropong.desktop $pkgdir/usr/share/applications/retropong.desktop