1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
6 pkgdesc="Java garbage collection log analyzer."
8 url="http://code.google.com/a/eclipselabs.org/p/garbagecat/"
10 depends=(java-runtime bash)
12 source=("${pkgname}.jar::http://${pkgname}.eclipselabs.org.codespot.com/files/${pkgname}-${pkgver}.jar")
13 noextract=(${pkgname}.jar)
14 md5sums=('e15878dcf62ba82b7315fa0b6bf1be21')
17 msg2 "Generate executable script..."
18 cat > "${srcdir}/${pkgname}.sh" << EOF
20 cd '/usr/share/java/${pkgname}'
21 "\$JAVA_HOME/bin/java" -jar '/usr/share/java/${pkgname}/${pkgname}.jar' "\$@"
26 msg2 "Install the library at /usr/share/java/${pkgname}..."
27 install -Dm644 "${srcdir}/${pkgname}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
29 msg2 "Install an executable at /usr/bin/${pkgname}..."
30 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
33 # vim:set ts=2 sw=2 et: