blob: a3d88519050ba5f1db9bb04439f37f08bdfab715 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: neilg <neil.r.green+aur@gmail.com>
# Contributor: Julien Nicoulaud <julien.nicoulaud@gmail.com>
pkgname=yourkit
_version=2026.3
_build=157
pkgver=${_version}.b${_build}
pkgrel=1
pkgdesc="Java CPU and memory profiler."
arch=(i686 x86_64 aarch64)
url="http://www.yourkit.com"
license=(custom)
depends=(desktop-file-utils bash)
optdepends=('intellij-idea-community-edition: A Java IDE that integrates with Yourkit'
'eclipse: A Java IDE that integrates with Yourkit'
'netbeans: A Java IDE that integrates with Yourkit')
options=(!strip)
_url() {
printf '%s' "https://download.yourkit.com/yjp/${_version}.${_build}/YourKit-Java-Profiler-${_version}.${_build}-$1.zip"
}
source_x86_64=("$(_url x64)")
source_i686=("${source_x86_64[@]}") # Same as source_x86_64
source_aarch64=("$(_url arm64)")
source=(
yourkit-yjp.desktop
yourkit.sh
)
sha256sums_x86_64=('5eca3ce34cd0feb8c4de9729af3449ac9c015f0519cfafc9983814516d064b27')
sha256sums_i686=("${sha256sums_x86_64[@]}") # Same as sha256sums_x86_64
sha256sums_aarch64=('47f4c2e23ba7cf783b71b461cbe02cbe0dd8df9b55edd178d35f3b9570fb7714')
sha256sums=('b071670d8264f4ec8c61d83f3717e83c7c87873c678a75d60670a002e185373d'
'6fc9612a76e2b50bb84130b0c40fcaccd04fe513e23ced398e707087459cc50e')
package() {
cd "$srcdir"
install -d "${pkgdir}/opt/${pkgname}"
mv 'YourKit Java Profiler'/* "${pkgdir}/opt/${pkgname}"
install -D -m755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
ln -s /opt/${pkgname}/probes "${pkgdir}/usr/share/doc/${pkgname}/probes"
ln -s /opt/${pkgname}/samples "${pkgdir}/usr/share/doc/${pkgname}/samples"
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s /opt/${pkgname}/license.html "${pkgdir}/usr/share/licenses/${pkgname}/"
ln -s /opt/${pkgname}/license-redist.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 yourkit-yjp.desktop "${pkgdir}"/usr/share/applications/yourkit-yourkit.desktop
}
# vim:set ts=2 sw=2 et:
|