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

zandronum PKGBUILD

By: a guest on Aug 8th, 2013  |  syntax: None  |  size: 2.29 KB  |  views: 77  |  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. pkgname=zandronum
  2. pkgver=1.1.1
  3. pkgrel=1
  4. pkgdesc="OpenGL ZDoom port with Client/Server multiplayer."
  5. arch=('i686' 'x86_64')
  6. url="http://zandronum.com/"
  7. license=('custom')
  8. conflicts=('zandronum-hg')
  9. #makedepends=('cmake' 'mercurial' 'yasm' 'mesa') # Not sure if it needs yasm.
  10. depends=('sdl' 'gtk2' 'libjpeg6' 'glu')
  11. optdepends=('timidity++: midi support'
  12.             'freedoom: free IWAD')
  13. install=zandronum.install
  14.  
  15. if [ "$CARCH" == "i686" ];then
  16.     source=(
  17.         "http://zandronum.com/downloads/zandronum1.1.1-linux-x86.tar.bz2"
  18.         "http://www.fmod.org/files/download/fmodapi42416linux.tar.gz"
  19.         "LICENSE.txt"
  20.     )
  21.     md5sums=(
  22.         '7be06d3bfefc7ab519c46c78d454c029'
  23.         '00b157e8d09d539b0a7023c48b71422a'
  24.         '58c2c8b15c886b838dc2ed5186361507'
  25.     )
  26.     _64=
  27. fi
  28.  
  29. if [ "$CARCH" == "x86_64" ]; then
  30.     source=(
  31.         "http://zandronum.com/downloads/zandronum1.1.1-linux-x86_64.tar.bz2"
  32.         "http://www.fmod.org/files/download/fmodapi42416linux64.tar.gz"
  33.         "LICENSE.txt"
  34.     )
  35.     md5sums=(
  36.         'dbcf7f03d3d1a4da3abd7603715d686f'
  37.         '70b2a6a2618ee9823ab564b4e945c885'
  38.         '58c2c8b15c886b838dc2ed5186361507'
  39.     )
  40.     _64=64
  41. fi
  42.  
  43.  
  44. build() {
  45.   cd $srcdir
  46.  
  47.   cat > zandronum.sh << EOF
  48. #!/bin/sh
  49. export LD_LIBRARY_PATH=/usr/share/zandronum/lib
  50. exec /usr/share/zandronum/zandronum "\$@"
  51. EOF
  52.  
  53.   cat > zandronum-server.sh << EOF
  54. #!/bin/sh
  55. export LD_LIBRARY_PATH=/usr/share/zandronum/lib
  56. exec /usr/share/zandronum/zandronum-server "\$@"
  57. EOF
  58.  
  59. }
  60.  
  61. package(){
  62.   cd $srcdir
  63.  
  64.   install -Dm644 "zandronum.pk3" "$pkgdir/usr/share/zandronum/zandronum.pk3"
  65.   install -Dm644 "skulltag_actors.pk3" "$pkgdir/usr/share/zandronum/skulltag_actors.pk3"
  66.   install -Dm755 "liboutput_sdl.so" "$pkgdir/usr/share/zandronum/lib/liboutput_sdl.so"
  67.   install -Dm755 "zandronum" "$pkgdir/usr/share/zandronum/zandronum"
  68.   install -Dm755 "zandronum-server" "$pkgdir/usr/share/zandronum/zandronum-server"
  69.   install -Dm755 "zandronum.sh" "$pkgdir/usr/bin/zandronum"
  70.   install -Dm755 "zandronum-server.sh" "$pkgdir/usr/bin/zandronum-server"
  71.   install -Dm755 "fmodapi42416linux${_64}/api/lib/libfmodex${_64}-4.24.16.so" "$pkgdir/usr/share/zandronum/lib/libfmodex${_64}-4.24.16.so"
  72.  
  73.   install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
  74. }