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

Frozen synapse PKGBUILD

By: a guest on Apr 17th, 2012  |  syntax: Bash  |  size: 1.89 KB  |  views: 59  |  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=frozensynapse
  2. pkgver=1
  3. pkgrel=6
  4. pkgdesc="A single player and multiplayer simultaneous-turn-based tactical game. (The Humble Frozen Synapse Bundle)"
  5. url="http://www.frozensynapse.com/"
  6. groups=('humblefsbundle' 'humblebundles')
  7. license=('custom: "commercial"')
  8. arch=('i686' 'x86_64')
  9. optdepends=('lib32-nvidia-utils: If you have nvidia graphics'
  10. 'lib32-catalyst-utils: If you have ATI graphics'
  11. 'lib32-ati-dri: If you have ATI graphics')
  12. source=(${pkgname}.desktop)
  13. md5sums=('eccdc9f63917fdb761d45c5621853485')
  14.  
  15. if [[ $CARCH == x86_64 ]]; then
  16. depends=('lib32-glibc' 'lib32-gcc-libs' 'lib32-openal' 'lib32-sdl' 'lib32-mesa')
  17. else
  18. depends=('glibc' 'gcc-libs' 'openal' 'sdl' 'mesa')
  19. fi
  20.  
  21. _archive="FS_Linux_Latest.run"
  22. _archive_md5="33b7c96e24be877a9c1345f7a016b57b"
  23.  
  24. build(){
  25. cd ${srcdir}
  26. echo Please just place ${_archive} into $(pwd)/
  27. echo Press Enter to continue
  28. read -a _unused
  29.  
  30.  
  31. if [ ! -f ${_fsarchivelocation}${_archive} ]; then
  32. echo "${_fsarchivelocation}${_archive} not found!"
  33. return 1
  34. fi
  35.  
  36. if ! echo "${_archive_md5} ${_fsarchivelocation}${_archive}" | md5sum -c --quiet; then
  37. echo "Invalid checksum for ${_fsarchivelocation}${_archive}"
  38. return 1
  39. fi
  40. }
  41.  
  42. package(){
  43.  
  44. # directories
  45. install -d ${pkgdir}/opt/${pkgname}
  46. cd ${srcdir}
  47. ./${_archive} --mode unattended --prefix /$pkgdir/opt/$pkgname/
  48.  
  49. #fix permissions
  50. find ${pkgdir}/opt/${pkgname} -type d -exec chmod 755 {} \;
  51. find ${pkgdir}/opt/${pkgname} -type f -exec chmod 644 {} \;
  52. chmod 755 ${pkgdir}/opt/${pkgname}/FrozenSynapse
  53.  
  54. # startup scripts
  55. install -Dd ${pkgdir}/usr/bin
  56. echo \#\!/bin/bash > ${pkgdir}/usr/bin/frozensynapse
  57. echo cd /opt/frozensynapse/ >> ${pkgdir}/usr/bin/frozensynapse
  58. echo ./FrozenSynapse \$@ >> ${pkgdir}/usr/bin/frozensynapse
  59. chmod +x ${pkgdir}/usr/bin/frozensynapse
  60.  
  61. # desktop entry
  62. install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
  63. }
clone this paste RAW Paste Data