Advertisement
Guest User

Zidane / vcmi PKGBUILD

a guest
Jun 3rd, 2010
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. # Maintainer: Kevin Whitaker <eyecreate at gmail dot com>
  2.  
  3. pkgname=vcmi-svn
  4. pkgver=1602
  5. pkgrel=1
  6. pkgdesc="Heroes of Might and Magic 3 remake"
  7. arch=('i686' 'x86_64')
  8. url="http://forum.vcmi.eu/portal.php"
  9. license=('GPL')
  10. depends=('sdl' 'boost' 'sdl_mixer' 'sdl_image' 'sdl_ttf' 'zlib' 'ffmpeg')
  11. makedepends=('subversion' 'automake' 'autoconf' 'libtool')
  12. source=()
  13. md5sums=()
  14.  
  15. _svntrunk=https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk
  16. _svnmod=vcmi
  17.  
  18.  
  19. build() {
  20. cd $srcdir
  21. if [ -d $_svnmod/.svn ]; then
  22. (cd $_svnmod && svn up -r $pkgver)
  23. else
  24. svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  25. fi
  26. cd $_svnmod
  27. autoreconf -i
  28. ./configure --prefix=/usr
  29. 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
  30. make || return 1
  31. make DESTDIR=$pkgdir install || return 1
  32. msg "Data files must be put in /usr/share/vcmi/ folder!"
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement