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

fs2_open-3-6-18 PKGBUILD

By: a guest on Mar 29th, 2013  |  syntax: Bash  |  size: 2.35 KB  |  views: 6  |  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: ZekeSulastin <zekesulastin@gmail.com>
  2. # Contributor: Mr_Robotic_Evil <mr.robotic.evil@googlemail.com>
  3. # Contributor: Lone_Wolf <lonewolf@xs4all.nl>
  4.  
  5. # This PKGBUILD only generates the engine binary.
  6. # The retail Freespace 2 data is required to play the
  7. # original game and most mods.  You can use a non-AUR/pacman'd
  8. # copy, but you'll be on your own as far as running the game
  9. # and mods are concerned.
  10. # Check the AUR package 'fs2_open-data' for details.
  11.  
  12. pkgname=fs2_open
  13. pkgver=3.6.18
  14. _pkgver=3_6_18 # Upstream's url/dirs ...
  15. pkgrel=1
  16. pkgdesc="An enhancement of the Freespace 2 engine"
  17. url="http://scp.indiegames.us"
  18. arch=('i686' 'x86_64')
  19. license=('custom:fs2_open')
  20. depends=('libjpeg' 'libpng' 'libtheora' 'libvorbis' 'lua51' 'mesa' 'openal' 'sdl')
  21. optdepends=('fs2_open-data: retail game data for Freespace 2'
  22.                         'fs2_open-mediavps: extensive audiovisual enhancements')
  23. conflicts=('fs2_open_3614')
  24. replaces=('fs2_open_3614')
  25. install=fs2_open.install
  26. source=(http://scp.indiegames.us/builds/fs2_open_${_pkgver}_src.tgz
  27.                 'osapi_unix.patch'
  28.                 'increase_joy_buttons_fixed.patch'
  29.                 'fs2_open'
  30.                 'options')
  31. md5sums=('22ecfa378fe4098704550219ee8cf7da'
  32.                 '783d5ab68a0ce4d26ee415e8fefbc762'
  33.                 '892cee11520d6e258eb17e897f98c1c9'
  34.                 '07f4ecc84c0267ea631dccf2faebb99d'
  35.                 'c62e14793f1ad18953ce29776bdbe521')
  36. build()
  37. {
  38.         cd "$srcdir/${pkgname}_${_pkgver}"
  39.  
  40.         # Changes default video settings for better mod compatability
  41.         patch -Np0 -i "$srcdir/osapi_unix.patch"
  42.  
  43.         # Increases hard limit of joystick buttons for better use with HOTAS etc.
  44.         patch -Np0 -i "$srcdir/increase_joy_buttons_fixed.patch"
  45.  
  46.         # Add --enable-debug to make a debug build.  These are NOT meant for general play;
  47.         #  only make a debug build if generating logs/bugreports.
  48.         LDFLAGS="-l:liblua.so.5.1 $LDFLAGS" CXXFLAGS="-I/usr/include/lua5.1 $CXXFLAGS" ./autogen.sh --enable-speech
  49.         make
  50. }
  51.  
  52. package()
  53. {
  54.         cd "$srcdir/${pkgname}_${_pkgver}"
  55.  
  56.         install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  57.         install -D -m644 ../options "$pkgdir/usr/share/$pkgname/options"
  58.         if [[ -x code/fs2_open_$pkgver ]]; then
  59.                 install -D -m755 code/fs2_open_$pkgver "$pkgdir/opt/$pkgname/fs2_open_$pkgver"
  60.         else
  61.                 install -D -m755 code/fs2_open_${pkgver}_DEBUG "$pkgdir/opt/$pkgname/fs2_open_${pkgver}_DEBUG"
  62.         fi
  63.         install -D -m755 "$srcdir/fs2_open" "$pkgdir/usr/bin/fs2_open"
  64. }
clone this paste RAW Paste Data