summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 178d03da9139e5dd6b108b8097c64a00d26c3cfe (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
25
26
27
28
29
30
31
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=nmonvisualizer
pkgver=2018_04_10
_jarname=NMONVisualizer_${pkgver//_/-}.jar
pkgrel=1
pkgdesc="Java GUI tool for analyzing nmon system files from both AIX and Linux"
arch=('any')
url="https://nmonvisualizer.github.io/nmonvisualizer/"
license=('GPL')
depends=('java-runtime')
source=("http://dl.bintray.com/nmonvisualizer/NMONVisualizer/NMONVisualizer_${pkgver//_/-}.jar"
        "nmonvisualizer.desktop")
noextract=(${_jarname})

package() {
  cd "${srcdir}"

  install -Dm644 ${_jarname} "${pkgdir}"/usr/share/java/$pkgname/nmonvisualizer.jar
  install -Dm644 "${srcdir}"/${pkgname}.desktop ${pkgdir}/usr/share/applications/$pkgname.desktop

#executable file
  install -d "${pkgdir}"/usr/bin
  cat <<"EOF" >"${pkgdir}"/usr/bin/nmonvisualizer
#!/bin/sh
java -jar /usr/share/java/nmonvisualizer/nmonvisualizer.jar
EOF
  chmod 755 "${pkgdir}"/usr/bin/$pkgname
}
md5sums=('1486dce60e199ca4a551900e865362c3'
         '5d73f2bfea723aa172e688b0b2d1dae8')