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

steelstorm2-2.00.02818

By: a guest on Aug 2nd, 2011  |  syntax: Bash  |  size: 2.44 KB  |  views: 133  |  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. # Inspired by wido's steelstorm (episode 1) pkgbuild
  2. # Maintainer: Jose Riha <jose1711 gmail com>
  3.  
  4. pkgname=steelstorm2
  5. _pkgname=steelstorm
  6. pkgver=2.00.02818
  7. pkgrel=1
  8. pkgdesc="a classic top down shooter, rife with explosions and things to explode, with a distinct visual style"
  9. arch=('i686' 'x86_64')
  10. url="http://www.steel-storm.com/"
  11. license=('commercial')
  12. install=(${_pkgname}.install)
  13. depends=('curl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'libvorbis' 'libogg' 'libmodplug' 'freetype2')
  14. replaces=('steelstorm')
  15. source=(steelstorm-br-${pkgver}-release.tar.gz
  16.         steelstorm.desktop
  17.         steelstorm.sh
  18.         steelstorm-dedicated.desktop
  19.         steelstorm-dedicated.sh)
  20. md5sums=('dc3e88ac4efd12e88037af140aa803ca'
  21.          '92dbfd2bc861c56f4ed0be5fe1885cb3'
  22.          '73d596ac67fb34ebc28df1f89b789dc2'
  23.          '37765811bd5cc7349cee57623a1d7797'
  24.          '565ec1b72aff78bd2e311c289b65e2d5')
  25.  
  26. build() {
  27. true
  28. }
  29.  
  30. package() {
  31.   cd ${srcdir}
  32.  
  33.   cd ${_pkgname}
  34.   mkdir -p ${pkgdir}/opt/
  35.  
  36.   cp -r ${srcdir}/${_pkgname} ${pkgdir}/opt/
  37.  
  38.   if [ "${CARCH}" = "x86_64" ]; then
  39.       # Delete bin 32 bits
  40.       rm ${pkgdir}/opt/${_pkgname}/${_pkgname} ${pkgdir}/opt/${_pkgname}/${_pkgname}-dedicated
  41.       install -Dm 755 ${pkgdir}/opt/${_pkgname}/${_pkgname}64 ${pkgdir}/opt/${_pkgname}/${_pkgname}
  42.       install -Dm 755 ${pkgdir}/opt/${_pkgname}/${_pkgname}64-dedicated ${pkgdir}/opt/${_pkgname}/${_pkgname}-dedicated
  43.  
  44.   elif [ "${CARCH}" = "i686" ]; then
  45.       # Delete bin 64 bits
  46.       rm ${pkgdir}/opt/${_pkgname}/${_pkgname}64 ${pkgdir}/opt/${_pkgname}/${_pkgname}64-dedicated
  47.       chmod 0755 ${pkgdir}/opt/${_pkgname}/${_pkgname}
  48.       chmod 0755 ${pkgdir}/opt/${_pkgname}/${_pkgname}-dedicated
  49.  
  50.   else
  51.  
  52.       echo "If you're not running x86_64 or i686, how are you running Arch?"
  53.       return 1
  54.   fi
  55.  
  56.   # Install .desktop, icon, license and bin
  57.   install -Dm 644 ${srcdir}/steelstorm.desktop ${pkgdir}/usr/share/applications/steelstorm.desktop
  58.   install -Dm 755 ${srcdir}/steelstorm.sh $pkgdir/usr/bin/steelstorm
  59.   install -Dm 644 ${srcdir}/steelstorm-dedicated.desktop ${pkgdir}/usr/share/applications/steelstorm-dedicated.desktop
  60.   install -Dm 755 ${srcdir}/steelstorm-dedicated.sh $pkgdir/usr/bin/steelstorm-dedicated
  61.  
  62.   install -Dm 644 ${pkgdir}/opt/${_pkgname}/icons/ss_ep2_icon_64.png ${pkgdir}/usr/share/pixmaps/steelstorm.png
  63.   install -Dm 644 ${pkgdir}/opt/${_pkgname}/license.txt ${pkgdir}/usr/share/licenses/license.txt
  64. }