Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD for wesnoth-devel-1.9.8

By: a guest on Aug 11th, 2011  |  syntax: None  |  size: 2.35 KB  |  views: 86  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. 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.8
  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>=1.2.7' 'sdl_net>=1.2.7' 'sdl_mixer>=1.2.7' 'sdl_image>=1.2.7' 'boost' 'fribidi' 'ruby' 'dbus-core' 'scons>=0.98.3')
  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.  compile-fix.patch)
  17. md5sums=('e166b1d991d08018449ac18876d0acd6'
  18.          'a906eae5d541a51de77038469b1f794b'
  19.          'b9de9e7ee16f757aa406466657c274a9'
  20.          'b73f4fdefd3e7daa158cce278f11be64'
  21.          '931e7443fe37b2862ca59f65ded74a0b'
  22.          '38d7c6ab249432df446ddf86cc9a41d7')
  23.  
  24.  build() {
  25.  
  26.  #CONFIGURING
  27.  cd "${srcdir}/wesnoth-$pkgver"
  28.  
  29.  patch -p1 < ../../compile-fix.patch || return 1
  30.  
  31. scons prefix=/usr program_suffix=-devel datadirname=wesnoth-devel prefsdir=.wesnoth-devel fifodir=/var/run/wesnothd-devel \
  32. localedir=/usr/share/locale docdir=/usr/share/doc/wesnoth-devel mandir=/usr/share/man/wesnoth-devel python_site_packages_dir=/lib/python/site-packages/wesnoth all || return 1
  33.  
  34. scons destdir=${pkgdir} install || return 1
  35.  
  36.  #INSTALLING of menu entry and icons:
  37.  install -D -m644 ../../wesnoth-devel.desktop ${pkgdir}/usr/share/applications/wesnoth-devel.desktop
  38.  install -D -m644 ../../wesnoth-devel-icon.xpm ${pkgdir}/usr/share/pixmaps/wesnoth-devel-icon.xpm
  39.  install -D -m644 ../../wesnoth-devel-icon.xpm ${pkgdir}/usr/share/icons/wesnoth-devel-icon.xpm
  40.  
  41.  install -D -m644 ../../wesnoth_editor-devel.desktop ${pkgdir}/usr/share/applications/wesnoth_editor-devel.desktop
  42.  install -D -m644 ../../wesnoth-devel_editor-icon.xpm ${pkgdir}/usr/share/pixmaps/wesnoth-devel_editor-icon.xpm
  43.  install -D -m644 ../../wesnoth-devel_editor-icon.xpm ${pkgdir}/usr/share/icons/wesnoth-devel_editor-icon.xpm
  44.  
  45.  chmod +x ${pkgdir}/var/run/wesnothd-devel
  46.  chmod o+r ${pkgdir}/var/run/wesnothd-devel
  47.  
  48.  rm -f ${pkgdir}/usr/share/applications/wesnoth.desktop
  49.  rm -f ${pkgdir}/usr/share/applications/wesnoth_editor.desktop
  50.  rm -f ${pkgdir}/usr/share/icons/wesnoth-icon.png
  51.  rm -f ${pkgdir}/usr/share/icons/wesnoth_editor-icon.png
  52.  }