updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / blocks-game / PKGBUILD
blobf0ec5f0bd6cca1f673a9f21ff6a66670d13b9ef5
1 # Maintainer: andy123 < ajs @ online . de >
3 pkgname=blocks-game
4 pkgver=1.12
5 pkgrel=1
6 pkgdesc="A 3D Jump & Run set in a small world of wood-blocks"
7 url="http://blocks-game.sourceforge.net/"
8 arch=('x86_64' 'i686')
9 license=('GPLv2')
10 depends=('libvorbis' 'ftgl')
11 makedepends=('scons' 'glfw')
12 source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/Blocks-${pkgver}.tar.bz2"
13         "launcher.sh")
14 sha512sums=('336f0deca5c170edd21d383ff54734923f61961bc89343889a291df19700d29c8b83cf3776715bf8a50a129ef6dbec1f4dcdc9992f8f39b7a9a25907fb199e29'
15         'a52b8b5d4b17ff065ab55c3917b67b4bb0886029ce514b3e217db201a267044f10d34eb41a2c7b7bbc71c5e681c730ba1dfc45e16f9264d2838bdbd518eb70b4')
17 build() {
18   cd "${srcdir}/Blocks-${pkgver}"
19   scons
22 package() {
23   cd "${srcdir}/Blocks-${pkgver}"
24   mkdir -p $pkgdir/usr/share/$pkgname/
25   mkdir -p $pkgdir/usr/bin/
26   cp -R data/ $pkgdir/usr/share/$pkgname/
27   cp -R levels/ $pkgdir/usr/share/$pkgname/
28   cp -R shaders/ $pkgdir/usr/share/$pkgname/
29   cp Blocks $pkgdir/usr/share/$pkgname/
30   cp config.xml $pkgdir/usr/share/$pkgname/
31   chmod a+rw $pkgdir/usr/share/$pkgname/config.xml
32   cp "${srcdir}"/launcher.sh $pkgdir/usr/bin/$pkgname
33   chmod +x $pkgdir/usr/bin/$pkgname