updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / vcmi-svn / PKGBUILD
blob4fa6cf37c75a008afbdd53fd3f9df912af0066fd
1 # Maintainer: Kevin Whitaker <eyecreate at gmail dot com>
2 # Fix: zidane
4 pkgname=vcmi-svn
5 pkgver=1602
6 pkgrel=2
7 pkgdesc="Heroes of Might and Magic 3 remake"
8 arch=('i686' 'x86_64')
9 url="http://forum.vcmi.eu/portal.php"
10 license=('GPL')
11 depends=('sdl' 'boost' 'sdl_mixer' 'sdl_image' 'sdl_ttf' 'zlib' 'ffmpeg')
12 makedepends=('subversion' 'automake' 'autoconf' 'libtool')
13 source=()
14 md5sums=()
16 _svntrunk=https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk
17 _svnmod=vcmi
20 build() {
21   cd $srcdir  
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
27   cd $_svnmod
28   autoreconf -i
29   ./configure --prefix=/usr
30   sed -i "s/#include <boost\/cstdint.hpp>/#ifdef __cplusplus\n#define __STDC_CONSTANT_MACROS\n#ifdef _STDINT_H\n#undef _STDINT_H\n#endif\n#include <boost\/cstdint.hpp>\n#endif/" ./global.h
31   make || return 1
32   make DESTDIR=$pkgdir install || return 1
33   msg "Data files must be put in /usr/share/vcmi/ folder!"