updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / fheroes2-svn / PKGBUILD
blobd3c6810110ab46d3c066c78b06ce0ce7521c4902
1 # Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
3 pkgname=fheroes2-svn
4 pkgver=2406
5 pkgrel=1
6 pkgdesc="Free implementation of Heroes of the Might and Magic II engine"
7 arch=('i686' 'x86_64')
8 url="http://sourceforge.net/apps/mediawiki/fheroes2/index.php?title=Main_Page"
9 license=('GPL')
10 depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf' 'fheroes2-data')
11 makedepends=('subversion' 'gettext')
12 provides=('fheroes2')
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 
20 _svnmod=fheroes2
22 build() {
23   cd "$srcdir"
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver)
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29   fi
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
40 package() {
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: