updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / fheroes2 / PKGBUILD
blobe6aaee1b00315538945936ff6772c8aa1d55630e
1 # Maintainer: mutterschiff <david.becker@gmx.org>
2 pkgname=fheroes2
3 pkgver=r2693
4 pkgrel=1
5 pkgdesc="Free implementation of Heroes of the Might and Magic II engine. SDL is used."
6 arch=(any)
7 url="http://sourceforge.net/projects/fheroes2/"
8 license=('GPL')
9 depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf' 'libogg' 'libpng12')
10 source=(http://sourceforge.net/projects/fheroes2/files/fheroes2/${pkgname}-src-${pkgver}.tgz 'fheroes2' 'fheroes2.desktop')
11 md5sums=('e661059a3157143d62c4a00b9bf0648c' '58a4ed94d2d107577fe8fdaa4a91993f' '0d52069db426be17ce9dbd5deb20d4fd')
12 install='fheroes2.install'
14 build() {
15   cd $srcdir/fheroes-src
16   make 
19 package() {
20   install -Dm644 $srcdir/fheroes2.desktop $pkgdir/usr/share/applications/fheroes2.desktop
21   install -Dm755 fheroes2 $pkgdir/usr/bin/fheroes2
22   install -Dm644 $srcdir/fheroes-src/image/fheroes2_32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/fheroes2.png
23   install -dm755 $srcdir/fheroes-src/ $pkgdir/usr/share/fheroes2
24   cp -R $srcdir/fheroes-src/* $pkgdir/usr/share/fheroes2
25   chown -R $USER $pkgdir/usr/share/fheroes2