openSUSE Paste > mypaste
Login

Info:

By KDE, 4 Years ago, written in Text. This post will never expire.

URL: http://paste.opensuse.org/19509013

  1. #Contributor:Andrea Tarocchi <valdar@email.it>
  2.  pkgname=wesnoth-devel
  3.  pkgver=1.9.2
  4.  pkgrel=2
  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=('07227351b97e0674b12a48b3cb36ec61'
  17. 'a906eae5d541a51de77038469b1f794b'
  18. '36c3cbe51dedaa07d2f16b35338664a5'
  19. 'b73f4fdefd3e7daa158cce278f11be64'
  20. '931e7443fe37b2862ca59f65ded74a0b')
  21.  
  22.  build() {
  23.  
  24.  #CONFIGURING
  25.  cd "${srcdir}/wesnoth-$pkgver"
  26.  ./autogen.sh
  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
  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
  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
  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.  }