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

doomsday-1.9.10

By: dotfloat on Dec 28th, 2012  |  syntax: None  |  size: 1.56 KB  |  views: 37  |  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. # Maintainer: Zohar Malamant <dotfloat gmail com>
  2. # Contributor: Arkham <arkham at archlinux dot us>
  3. # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
  4. # Contributor: Dmitry Shilov <stormblast@land.ru>
  5.  
  6. pkgname=doomsday
  7. pkgver=1.9.10
  8. pkgrel=1
  9. pkgdesc="An advanced Doom engine that supports DOOM, Heretic and Hexen."
  10. url="http://dengine.net/"
  11. arch=('i686' 'x86_64')
  12. license=('GPL2')
  13. depends=('glu' 'qt' 'sdl_mixer' 'mesa' 'fmodex' 'wxpython')
  14. optdepends=('doom1-wad: Doom shareware',
  15.             'heretic1-wad: Heretic shareware',
  16.             'hexen1-wad: Hexen shareware')
  17. source=("http://downloads.sourceforge.net/deng/doomsday-${pkgver}.tar.gz")
  18. md5sums=('c5766f45102727f9fae370643c5bfa72')
  19.  
  20. build() {
  21.  
  22.     # Force python2
  23.     rm -rf ${srcdir}/python
  24.     mkdir ${srcdir}/python
  25.     ln -s /usr/bin/python2 ${srcdir}/python/python
  26.     export PATH=${srcdir}/python:$PATH
  27.  
  28.     # Enter build directory
  29.     cd ${srcdir}/doomsday-${pkgver}/doomsday
  30.  
  31.     # Fix lib64 stuff
  32.     sed 's/lib64/lib/g' -i config_unix.pri
  33.  
  34.     # Hack for compiling fmodex libs
  35.     echo -e "FMOD_DIR = \"${srcdir}/doomsday-${pkgver}/doomsday/plugins/fmod\"" > config_user.pri
  36.     ln -sf /usr/include/fmodex/* ${srcdir}/doomsday-${pkgver}/doomsday/plugins/fmod/include/
  37.  
  38.     # Generate makefiles using qmake
  39.     qmake -r ./doomsday.pro CONFIG+="deng_fmod release"
  40.  
  41.     # Build
  42.     make $MAKEFLAGS
  43. }
  44.  
  45. package() {
  46.     cd ${srcdir}/doomsday-${pkgver}/doomsday
  47.     make INSTALL_ROOT=${pkgdir} install
  48.  
  49.     sed -i 's/python/python2/' "${pkgdir}/usr/bin/launch-doomsday"
  50. }
clone this paste RAW Paste Data