1 # Maintainer: Chris Molozian (novabyte) <chris DOT molozian AT gmail DOT com>
2 # Contributor: Sanjuro Makabe (itti) <vuck AT gmx DOT de>
5 _pkgver=1.0-milestone-7
7 pkgdesc="A powerful build system for the JVM"
9 url="http://www.gradle.org/"
11 depends=('java-runtime')
12 source=(http://repo.gradle.org/$pkgname/distributions/$pkgname-$_pkgver-bin.zip gradle.sh)
15 # install profile.d script
16 install -dm755 "${pkgdir}"/etc/profile.d
17 install -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/etc/profile.d/"
18 cd "${srcdir}/${pkgname}-${_pkgver}"
20 # create the necessary directory structure
21 mkdir -p "${pkgdir}/usr/share/java/${pkgname}/bin"
22 mkdir -p "${pkgdir}/usr/share/java/${pkgname}/lib/plugins"
23 mkdir -p "${pkgdir}/usr/share/java/${pkgname}/init.d"
24 mkdir -p "${pkgdir}/usr/bin"
26 # copy across jar files
27 install -Dm644 lib/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib" || return 1
28 install -Dm644 lib/plugins/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib/plugins" || return 1
30 # copy across supporting text documentation and scripts
31 install -m644 NOTICE "${pkgdir}/usr/share/java/${pkgname}" || return 1
32 install -m644 LICENSE "${pkgdir}/usr/share/java/${pkgname}" || return 1
33 install -m644 *.txt "${pkgdir}/usr/share/java/${pkgname}" || return 1
34 install -m644 *.html "${pkgdir}/usr/share/java/${pkgname}" || return 1
35 install -m755 bin/gradle "${pkgdir}/usr/share/java/${pkgname}/bin" || return 1
36 install -m644 init.d/*.* "${pkgdir}/usr/share/java/${pkgname}/init.d" || return 1
38 # link gradle script to /usr/bin
39 ln -s /usr/share/java/${pkgname}/bin/${pkgname} ${pkgdir}/usr/bin
42 md5sums=('3622dbf2f2ef30c5abf5d8b94e709e13'
43 'd73a375d2796dfe4ec170f2f5af3a0c9')