updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / blockling / PKGBUILD
blob282d0e29a057d0f47dd54f0b63399dba1586e440
1 # Contributor: b4283 <damispirit@gmail>
3 pkgname=blockling
4 pkgver=r219
5 pkgrel=1
6 pkgdesc="A puzzle game involving moving and stacking blocks with 8-bit graphics and sounds."
7 arch=('i686' 'x86_64')
8 license=('GPLv3')
9 url="http://sourceforge.net/projects/blockling/"
10 depends=(sdl sdl_mixer)
11 source=(http://downloads.sourceforge.net/project/blockling/blockling-src-r219.tar.gz
12         makefile.patch)
13 md5sums=('6a1d5ad29dc88cba9e4ddf9e4a90318a'
14          'fee392ea45fbec1e55fc198b491f7d1f')
16 srcdir2="${srcdir}/${pkgname}-${pkgver}"
18 build() {
19         cd ${srcdir2}
20         patch -p0 < ../makefile.patch
21         make || return 1
23         mkdir -p ${pkgdir}/usr/share/blockling/ ${pkgdir}/usr/bin/
24         install ${srcdir2}/blockling ${pkgdir}/usr/share/blockling
25         cp -r ${srcdir2}/data ${pkgdir}/usr/share/blockling/
26         
27         echo -e '#!/bin/bash\n\ncd ${HOME}\n/usr/share/blockling/blockling $*\nexit $?' > ${pkgdir}/usr/bin/blockling
28         chmod 755 ${pkgdir}/usr/bin/blockling
30 md5sums=('6a1d5ad29dc88cba9e4ddf9e4a90318a'
31          '2ee474c1bb00b69a9a020fed5b720f80')