updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kwestkingdom / PKGBUILD
bloba03fd1fb9b22d181cbc92b463fdba363e6aaf9b3
1 # Maintainer: Kevin Whitaker <eyecreate at gmail dot com>\r
2 # Contributor: David Zaragoza <david@zaragoza.co.ve>\r
3 \r
4 pkgname=kwestkingdom\r
5 pkgver=0.1\r
6 pkgrel=1\r
7 pkgdesc="A 2D turn based strategy game. "\r
8 arch=('i686' 'x86_64')\r
9 url="http://sourceforge.net/projects/qogreatness/"\r
10 license=('GPL')\r
11 groups=('games')\r
12 depends=('allegro')\r
13 makedepends=('gcc-objc')\r
14 source=(kwestkingdom.desktop kwestkingdom.sh kwestkingdom.png http://sourceforge.net/projects/qogreatness/files/kwestkingdom-20100518.tar.gz)\r
15 md5sums=('44ef511bdc2fe1da1e27d6387b8b3b84'\r
16          'bbb2d1709d259c65d57b7e38390cadf2'\r
17          '03e91bf11305dc01e355725bd34fed50'\r
18          'c1a3242e33d3f12ddafff5560fa202ac')\r
20 build() {\r
21   cd $srcdir/$pkgname\r
22   make || return 1\r
23   mkdir -p $pkgdir/usr/{bin,share/{pixmaps,applications,kwestkingdom/{sounds/{arrow,hammer,hurt,items,movement,sword},music,tmp}}}\r
24   cp -r $srcdir/$pkgname/Linux/share/kwestkingdom/* $pkgdir/usr/share/kwestkingdom || return 1\r
25   install -m755 $srcdir/$pkgname/Linux/bin/kwestkingdom $pkgdir/usr/bin/kwestkingdombin || return 1\r
26   install -m755 $srcdir/../kwestkingdom.sh $pkgdir/usr/bin/kwestkingdom || return 1\r
27   install -m644 $srcdir/../kwestkingdom.png $pkgdir/usr/share/pixmaps/kwestkingdom.png || return 1\r
28   install -m644 $srcdir/../kwestkingdom.desktop $pkgdir/usr/share/applications/kwestkingdom.desktop || return 1\r