1 # Maintainer: Kevin Whitaker <eyecreate at gmail dot com>
7 pkgdesc="Heroes of Might and Magic 3 remake"
9 url="http://forum.vcmi.eu/portal.php"
11 depends=('sdl' 'boost' 'sdl_mixer' 'sdl_image' 'sdl_ttf' 'zlib' 'ffmpeg')
12 makedepends=('subversion' 'automake' 'autoconf' 'libtool')
16 _svntrunk=https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
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
32 make DESTDIR=$pkgdir install || return 1
33 msg "Data files must be put in /usr/share/vcmi/ folder!"