updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / kartofel / PKGBUILD
blobf6ec680ae318b93fd1193bf071193af12c6a17b4
1 # Contributor: Dany Martineau <dany.luc.martineau gmail com>
3 pkgname=kartofel
4 pkgver=1.2
5 pkgrel=2
6 pkgdesc="Kartofel is a game of skill and logic."
7 url="http://kartofel.jfedor.org/"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 depends=('sdl' 'sdl_gfx' 'sdl_ttf' 'sdl_mixer' 'sdl_image' 'curl' 'zlib')
11 provides=('kartofel')
12 source=(http://kartofel.jfedor.org/downloads/kartofel-$pkgver.tar.gz kartofel kartofel.desktop saved_game.diff)
13 md5sums=('4452da69e2e5c8f78ac22e234594dabf'
14          'f959c9298b8c0ace0b313cac4d3432d8'
15          'ea89ef5b5449906d062bde90ff783832'
16          '68ce8b8e8854d75aea4c7853447ac4dd')
18 build() {
19         cd $srcdir/$pkgname-$pkgver
20         patch -p0 < ../saved_game.diff || return 1
21         make || return 1
22         mkdir -p $pkgdir/usr/bin
23         mkdir -p $pkgdir/usr/share/kartofel
24         mkdir -p $pkgdir/usr/share/applications
25         cp -r kartofel fonts images levels music sounds www $pkgdir/usr/share/kartofel
26         cp ${startdir}/kartofel.desktop $pkgdir/usr/share/applications
27         cd $pkgdir/usr/share/kartofel
28         touch kartofel.txt
29         chmod 777 kartofel.txt
30         install -m 555 $srcdir/kartofel $pkgdir/usr/bin/