updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / kreiselball-demo / PKGBUILD
bloba30327e3911ee1cc1f7e0431dc872ed85013be5c
1 # Maintainer: Gen2ly <toddrpartridge@gmail.com>
3 pkgname=kreiselball-demo
4 pkgver=1.0.1
5 _pkgname=KreiselBall
6 pkgrel=1
7 pkgdesc="Control a ball by turning the world in a classic game play"
8 arch=('i686' 'x86_64')
9 url="http://kreiselball.com/"
10 license=('custom')
11 depends=('sdl' 'sdl_mixer')
12 makedepends=('unzip')
13 source=(http://kreiselball.com/files/KreiselBall-1.0.1-EN-Demo.zip
14         kreiselball-demo.desktop
15         kreiselball-demo)
16 md5sums=('4d5b981e656d0f5741abd80df5227750'
17          '05fd64c7bd36b07c4d7c410e415abc10'
18          '91a1ea28435eced8d66d16b7ce96d2e5')
21 build () {
22   # Extract archive
23   cd $srcdir || return 1
24   bsdtar -x -f $_pkgname-$pkgver-EN-Demo.zip || return 1
25   bsdtar -x -f $_pkgname-$pkgver-EN-Demo/Linux/$_pkgname-$pkgver-Demo.tar.gz || return 1
27   # Create pkgdir folders
28   install -d $pkgdir/usr/bin
29   install -d $pkgdir/usr/share/{applications,games/kreiselball-demo,icons}
30   install -d $pkgdir/usr/share/licenses/$pkgname
32   # Install files
33   cd $_pkgname-$pkgver-Demo/
35   # game folder
36   cp -r * $pkgdir/usr/share/games/$pkgname/
38   # executable
39   install -Dm755 $startdir/$pkgname $pkgdir/usr/bin/
41   # icon/.desktop
42   install -Dm644 data/images/player.png $pkgdir/usr/share/icons/$pkgname.png
43   install -Dm644 $startdir/$pkgname.desktop $pkgdir/usr/share/applications/