This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

world of padman 1.5.1 PKGBUILD

By: a guest on Feb 27th, 2011  |  syntax: None  |  size: 2.65 KB  |  views: 488  |  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: Tiago Pierezan Camargo <tcamargo@gmail.com
  2. # Contributor: Paul Bredbury <brebs@sent.com>
  3. # Contributor: Benjamin Dirks <asaru[at]wtnet[dot]de>
  4.  
  5. pkgname=worldofpadman
  6. pkgver=1.5.1
  7. pkgrel=0
  8. pkgdesc="Cartoon-style multiplayer first-person shooter"
  9. arch=(i686 x86_64)
  10. url="http://www.worldofpadman.com/"
  11. license=('GPL' 'custom')
  12. depends=('curl' 'libogg' 'libvorbis' 'mesa' 'openal' 'sdl')
  13. makedepends=('unzip')
  14. source=(
  15.         wop-1.5-unified.zip::http://sourceforge.net/projects/wop-engine/files/v1.5/wop-1.5-unified.zip/download
  16.         wop-1.5.1-hotfix.zip::http://sourceforge.net/projects/wop-engine/files/v1.5/wop-1.5.1-hotfix.zip/download
  17.         worldofpadman.desktop
  18.         wop.png
  19.         )
  20. md5sums=(
  21.         '8871affc2a36f23aa22044454c834923'
  22.         'e7e300a6229a167573ccc370a8cc478e'
  23.         '0115c41ec5cb5b7e098edcb3df7db4d9'
  24.         'db6877696be70a278c27223c35f43188'
  25.          )
  26.  
  27. _gamedir="/usr/share/$pkgname"
  28.  
  29. build() {
  30.  
  31.   cd "$srcdir"
  32.  
  33.   ## Binaries
  34.   if [ "$CARCH" == i686 ] ; then
  35.       install -D -m755 wop.i386 "$pkgdir/$_gamedir/wop.bin" || return 1
  36.       install -D -m755 wopded.i386 "$pkgdir/$_gamedir/wopded.bin" || return 1
  37.   fi
  38.  
  39.   if [ "$CARCH" == x86_64 ]  ; then
  40.       install -D -m755 wop.x86_64 "$pkgdir/$_gamedir/wop.bin" || return 1
  41.       install -D -m755 wopded.x86_64 "$pkgdir/$_gamedir/wopded.bin" || return 1
  42.   fi
  43.  
  44.   cat >wop.sh <<EOF
  45. #!/bin/bash
  46. cd $_gamedir && exec ./wop.bin "\$@"
  47. EOF
  48.   cat >wopded.sh <<EOF
  49. #!/bin/bash
  50. cd $_gamedir && exec ./wopded.bin "\$@"
  51. EOF
  52.  
  53.   install -D -m755 wop.sh "$pkgdir/usr/bin/wop" || return 1
  54.   install -D -m755 wopded.sh "$pkgdir/usr/bin/wopded" || return 1
  55.  
  56.   # Data
  57.   # Using "read", so can handle filenames containing spaces
  58.   find wop -type f | while read _f ; do
  59.     install -D -m644 "$_f" "${pkgdir}/$_gamedir/$_f" || return 1
  60.   done
  61.   # Return from the function, since install's return just exits the loop
  62.   # See http://fvue.nl/wiki/Bash:_Error_handling
  63.   [ $? -gt 0 ] && return 1
  64.  
  65.   # Desktop
  66.   install -D -m644 ${srcdir}/wop.png ${pkgdir}/usr/share/pixmaps/$pkgname.png || return 1
  67.   install -D -m644 ${srcdir}/$pkgname.desktop ${pkgdir}/usr/share/applications/$pkgname.desktop || return 1
  68.  
  69.   # Docs
  70.   cd "$srcdir/XTRAS" || return 1
  71.   # Using "read", so can handle filenames containing spaces
  72.   find . -type f | while read _f ; do
  73.     install -D -m644 "$_f" "${pkgdir}/usr/share/doc/$pkgname/$_f" || return 1
  74.   done
  75.   # Return from the function, since install's return just exits the loop
  76.   # See http://fvue.nl/wiki/Bash:_Error_handling
  77.   [ $? -gt 0 ] && return 1
  78.  
  79.   # License
  80.   install -D -m644 copyright_en.txt "${pkgdir}/usr/share/licenses/$pkgname/COPYING" || return 1
  81. }
clone this paste RAW Paste Data