updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / garbagecat / PKGBUILD
blob0ce5da36954688e0f3536af70b20bf4e23a36dc2
1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=garbagecat
4 pkgver=1.0.1
5 pkgrel=1
6 pkgdesc="Java garbage collection log analyzer."
7 arch=(any)
8 url="http://code.google.com/a/eclipselabs.org/p/garbagecat/"
9 license=(EPL)
10 depends=(java-runtime bash)
11 changelog=Changelog
12 source=("${pkgname}.jar::http://${pkgname}.eclipselabs.org.codespot.com/files/${pkgname}-${pkgver}.jar")
13 noextract=(${pkgname}.jar)
14 md5sums=('e15878dcf62ba82b7315fa0b6bf1be21')
16 build() {
17   msg2 "Generate executable script..."
18   cat > "${srcdir}/${pkgname}.sh" << EOF
19 #!/bin/sh
20 cd '/usr/share/java/${pkgname}'
21 "\$JAVA_HOME/bin/java" -jar '/usr/share/java/${pkgname}/${pkgname}.jar' "\$@"
22 EOF
25 package() {
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: