updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / sdlblocks / PKGBUILD
blob537971652b3d97eede2106c0e1af4f9f435ef7c9
1 # Maintainer: jose <jose1711 [at] gmail (dot) com>
3 pkgname=sdlblocks
4 pkgver=1
5 pkgrel=4
6 pkgdesc="A Tetris remake written in C using libSDL"
7 arch=('i686')
8 url="http://machineinteractive.com/projects/projects.html"
9 license=("GPL-2")
10 depends=('sdl_mixer' 'sdl_ttf' 'bash')
11 source=("http://machineinteractive.com/projects/downloads/${pkgname}.tar.gz" "${pkgname}.desktop")
12 md5sums=('f3662e2e5e4c9b742bd3ad311521034d'
13          '4178deb1bc373988c9dd305a648093c0')
15 build() {
16 cd $srcdir/$pkgname
17 make
20 package() {
21 cd $srcdir/$pkgname
22 mkdir -p $pkgdir/usr/bin
23 install -D -m644 Bitstream-Vera-Sans-Mono.ttf $pkgdir/usr/share/sdlblocks/Bitstream-Vera-Sans-Mono.ttf
24 install -D -m644 README.txt $pkgdir/usr/share/sdlblocks/README.txt
25 install -D -m644 korobeiniki.mp3 $pkgdir/usr/share/sdlblocks/korobeiniki.mp3
26 install -D -m644 sdlblocks.bmp $pkgdir/usr/share/sdlblocks/sdlblocks.bmp
27 install -D -m644 sdlblocks.o $pkgdir/usr/share/sdlblocks/sdlblocks.o
28 install -D -m755 sdlblocks $pkgdir/usr/share/sdlblocks/sdlblocks
29 (echo "#!/bin/bash
30 cd /usr/share/sdlblocks
31 ./sdlblocks") > $pkgdir/usr/bin/sdlblocks
32 chmod 755 $pkgdir/usr/bin/sdlblocks
33 install -Dm 644 $srcdir/${pkgname}.desktop $pkgdir/usr/share/applications/${pkgname}.desktop