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

Untitled

By: a guest on May 27th, 2011  |  syntax: None  |  size: 1.65 KB  |  views: 61  |  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: Chris Molozian (novabyte) <chris DOT molozian AT gmail DOT com>
  2. # Contributor: Sanjuro Makabe (itti) <vuck AT gmx DOT de>
  3. pkgname=gradle
  4. pkgver=1.0milestone3
  5. _pkgver=1.0-milestone-3
  6. pkgrel=1
  7. pkgdesc="A powerful build system for the JVM"
  8. arch=('any')
  9. url="http://www.gradle.org/"
  10. license=('APACHE')
  11. depends=('java-runtime')
  12.  
  13. source=(http://repo.gradle.org/gradle/distributions/gradle-${_pkgver}-bin.zip ${pkgname}.sh)
  14.  
  15. md5sums=('1ee94c89a4f6d03c36c662d9991d8c1b'
  16.          '5cfadb0a7be2aa20a5f7116142b9de7d')
  17.  
  18. package(){
  19.  
  20.     # install profile.d script
  21.     install -dm755 "${pkgdir}"/etc/profile.d
  22.     install -m755 "${srcdir}"/${pkgname}.sh "${pkgdir}"/etc/profile.d/
  23.  
  24.     cd "${srcdir}/${pkgname}-${_pkgver}"
  25.  
  26.     # create the necessary directory structure
  27.     mkdir -p "${pkgdir}/usr/share/java/${pkgname}/bin"
  28.     mkdir -p "${pkgdir}/usr/share/java/${pkgname}/lib/plugins"
  29.     mkdir -p "${pkgdir}/usr/share/java/${pkgname}/lib/core-impl"
  30.     mkdir -p "${pkgdir}/usr/bin"
  31.  
  32.     # copy across jar files
  33.     install -Dm644 lib/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib" || return 1
  34.     install -Dm644 lib/plugins/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib/plugins" || return 1
  35.     install -Dm644 lib/core-impl/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib/core-impl" || return 1
  36.  
  37.     # copy across supporting text documentation and scripts
  38.     install -m644 *.* "${pkgdir}/usr/share/java/${pkgname}" || return 1
  39.     install -m755 bin/gradle "${pkgdir}/usr/share/java/${pkgname}/bin" || return 1
  40.  
  41.     # link gradle script to /usr/bin
  42.     ln -s /usr/share/java/${pkgname}/bin/${pkgname} ${pkgdir}/usr/bin
  43. }
clone this paste RAW Paste Data