Want more features on Pastebin? Sign Up, it's FREE!
Guest

wesnoth-devel pkgbuild

By: a guest on Aug 24th, 2010  |  syntax: None  |  size: 2.70 KB  |  views: 86  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #Contributor:Andrea Tarocchi <valdar@email.it>
  2. pkgname=wesnoth-devel
  3. pkgver=1.9.0
  4. pkgrel=1
  5. pkgdesc="development version of a turn-based strategy game on a fantasy world"
  6. arch=('i686' 'x86_64')
  7. url="http://www.wesnoth.org/"
  8. license=('GPL')
  9. depends=('pango' 'sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'boost' 'fribidi' 'ruby' 'dbus-core')
  10. install=${pkgname}.install
  11. source=(http://downloads.sourceforge.net/sourceforge/wesnoth/wesnoth-$pkgver.tar.bz2 \
  12. ${pkgname}.desktop \
  13. wesnoth_editor-devel.desktop \
  14. wesnoth-devel-icon.xpm \
  15. wesnoth-devel_editor-icon.xpm)
  16. md5sums=('c4e7ba80c6212cb58c3ff96d10f417ae'
  17. 'a906eae5d541a51de77038469b1f794b'
  18. '36c3cbe51dedaa07d2f16b35338664a5'
  19. 'b73f4fdefd3e7daa158cce278f11be64'
  20. '931e7443fe37b2862ca59f65ded74a0b')
  21.  
  22. build() {
  23.  
  24. #CONFIGURING
  25. cd "${srcdir}/wesnoth-$pkgver"
  26. ./autogen.sh || return 1
  27. ./configure --prefix=/usr --enable-tools --enable-editor --enable-server \
  28. --with-preferences-dir=.wesnoth-devel --program-suffix=-devel --with-datadir-name=wesnoth-devel \
  29. --enable-campaign-server --with-fifodir=/var/run/wesnothd-devel --docdir=/usr/share/doc/wesnoth-devel \
  30. --mandir=/usr/share/man/wesnoth-devel || return 1
  31. #--disable-strict-compilation || return 1
  32.  
  33. #PATCHING for libpng compatibility
  34. #cd ..
  35. #patch -p0 < ../libpng_compatibility_patch.patch || return 1
  36.  
  37. #MAKING datarootdir=/usr/share datadir=/usr/share || return 1 might be another useful otion
  38. cd "${srcdir}/wesnoth-$pkgver"
  39. make || return 1
  40.  
  41. # make pkgpythondir=${pkgdir}/usr/lib/python`python -c \
  42. # "import sys; print '%d' % (sys.version_info[0]);" \
  43. # `.`python -c "import sys; print '%d' % (sys.version_info[1]);" \
  44. # `/site-packages/wesnoth DESTDIR="${pkgdir}" install || return 1
  45.  
  46. make DESTDIR="${pkgdir}" install || return 1
  47.  
  48. #INSTALLING of menu entry and icons:
  49. install -D -m644 ../../wesnoth-devel.desktop ${pkgdir}/usr/share/applications/wesnoth-devel.desktop
  50. install -D -m644 ../../wesnoth-devel-icon.xpm ${pkgdir}/usr/share/pixmaps/wesnoth-devel-icon.xpm
  51. install -D -m644 ../../wesnoth-devel-icon.xpm ${pkgdir}/usr/share/icons/wesnoth-devel-icon.xpm
  52.  
  53. install -D -m644 ../../wesnoth_editor-devel.desktop ${pkgdir}/usr/share/applications/wesnoth_editor-devel.desktop
  54. install -D -m644 ../../wesnoth-devel_editor-icon.xpm ${pkgdir}/usr/share/pixmaps/wesnoth-devel_editor-icon.xpm
  55. install -D -m644 ../../wesnoth-devel_editor-icon.xpm ${pkgdir}/usr/share/icons/wesnoth-devel_editor-icon.xpm
  56.  
  57. chmod +x ${pkgdir}/var/run/wesnothd-devel
  58. chmod o+r ${pkgdir}/var/run/wesnothd-devel
  59.  
  60. rm -f ${pkgdir}/usr/share/applications/wesnoth.desktop
  61. rm -f ${pkgdir}/usr/share/applications/wesnoth_editor.desktop
  62. rm -f ${pkgdir}/usr/share/icons/wesnoth-icon.png
  63. rm -f ${pkgdir}/usr/share/icons/wesnoth_editor-icon.png
  64. }
clone this paste RAW Paste Data