1 # Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
6 pkgdesc="Free implementation of Heroes of the Might and Magic II engine"
8 url="http://sourceforge.net/apps/mediawiki/fheroes2/index.php?title=Main_Page"
10 depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf' 'fheroes2-data')
11 makedepends=('subversion' 'gettext')
13 conflicts=('fheroes2')
14 source=(fheroes2.desktop fheroes2.sh)
15 install=fheroes2.install
16 md5sums=('0d52069db426be17ce9dbd5deb20d4fd'
17 'a39dd6625e7d1582c85087937e00f074')
19 _svntrunk=https://fheroes2.svn.sourceforge.net/svnroot/fheroes2/trunk/fheroes2
25 if [ -d $_svnmod/.svn ]; then
26 (cd $_svnmod && svn up -r $pkgver)
28 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31 rm -rf "$srcdir/$_svnmod-build"
32 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33 cd "$srcdir/$_svnmod-build"
35 sed -i "s/libpng12-config/libpng14-config/g" src/Makefile
37 make RELEASE=1 WITH_AI=simple
41 install -Dm755 "$srcdir/fheroes2.sh" "$pkgdir/usr/bin/fheroes2"
42 install -Dm644 "$srcdir/fheroes2.desktop" "$pkgdir/usr/share/applications/fheroes2.desktop"
43 install -Dm644 "$srcdir/fheroes2-build/image/fheroes2_32x32.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/fheroes2.png"
44 install -Dm755 "$srcdir/fheroes2-build/fheroes2" "$pkgdir/usr/share/fheroes2/fheroes2"
45 install -Dm644 "$srcdir/fheroes2-build/fheroes2.cfg" "$pkgdir/usr/share/fheroes2/fheroes2.cfg"
46 install -dm755 "$pkgdir/usr/share/fheroes2/data" "$pkgdir/usr/share/fheroes2/maps"
49 # vim:set ts=2 sw=2 et: