Want more features on Pastebin? Sign Up, it's FREE!
Guest

groovedown 0.89-1

By: a guest on Nov 15th, 2012  |  syntax: Bash  |  size: 0.89 KB  |  views: 69  |  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. #Contributor: onny <onny@project-insanity.org>
  2. #Maintainer: onny <onny@project-insanity.org>
  3.  
  4. pkgname=groovedown
  5. pkgver=0.89
  6. pkgrel=1
  7. pkgdesc="A simple Downloadtool for Grooveshark.com"
  8. arch=('i686' 'x86_64')
  9. url="http://groovedown.me"
  10. license=("GPL")
  11. depends=('java-runtime')
  12. makedepends=('unzip')
  13. source=("${url}/wp-content/uploads/downloads/2012/10/GrooveDown.zip")
  14. sha256sums=('f897805446a0df8a3dc351f01b7217b43f6b363f6786a20c32de0ddf5be2552a')
  15.  
  16. package() {
  17.   mkdir -p "${pkgdir}/opt/${pkgname}" "${pkgdir}/usr/bin"
  18.   unzip -u  ${srcdir}/GrooveDown.zip -d "${pkgdir}/opt/${pkgname}/"
  19.   mv ${pkgdir}/opt/${pkgname}/GrooveDown/* ${pkgdir}/opt/${pkgname} && rm -r ${pkgdir}/opt/${pkgname}/GrooveDown
  20.   chmod -R 775 "${pkgdir}/opt/${pkgname}"
  21.   echo -e "#!/bin/bash\njava -jar /opt/${pkgname}/GrooveDown.jar \$@" > $pkgdir/usr/bin/${pkgname}
  22.   chmod a+x "${pkgdir}/usr/bin/${pkgname}"
  23. }
clone this paste RAW Paste Data