1 # Contributor: Dany Martineau <dany.luc.martineau gmail com>
6 pkgdesc="Kartofel is a game of skill and logic."
7 url="http://kartofel.jfedor.org/"
10 depends=('sdl' 'sdl_gfx' 'sdl_ttf' 'sdl_mixer' 'sdl_image' 'curl' 'zlib')
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')
19 cd $srcdir/$pkgname-$pkgver
20 patch -p0 < ../saved_game.diff || 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
29 chmod 777 kartofel.txt
30 install -m 555 $srcdir/kartofel $pkgdir/usr/bin/