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