summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a080b30f581a2dcee7e81128a6104e5a86dcf55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: jerry73204 <jerry73204@gmail.com>

pkgname=jvmtop
pkgver=0.8.0
pkgrel=2
arch=('any')
pkgdesc="jvmtop is a lightweight console application to monitor all accessible, running jvms on a machine"
url="https://github.com/patric-r/jvmtop"
license=("GPL2")
depends=('java-environment')
options=('!strip')
source=("https://github.com/patric-r/jvmtop/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
        'change-jar-dir.patch')
sha1sums=('36b8980fb2b34d83ea3e91438f71afc4482df66c'
          '31db74f8e17882284c0cfb03a5960eeef26bcaeb')

prepare() {
  patch -Np0 -i "${srcdir}/change-jar-dir.patch"
}

package() {
  install -Dm0644 "${srcdir}/jvmtop.jar" "${pkgdir}/usr/share/java/jvmtop/jvmtop.jar"
  install -Dm0755 "${srcdir}/jvmtop.sh" "${pkgdir}/usr/bin/jvmtop"
}