blob: e09a368d0d7d30b4b4541fcd113c4386cf569bce (
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=2024.9
_build=159
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}/YourKit-JavaProfiler-${_version}-b${_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=('342a6c533c4e33924c05092e92da5cfead41c2a0f4d6f7bb722e074ec23d8204')
sha256sums_i686=("${sha256sums_x86_64[@]}") # Same as sha256sums_x86_64
sha256sums_aarch64=('5d2c68972a5fd6faf494af94fe919c279afa3df8fd6c9d682673504ecb3239a8')
sha256sums=('b071670d8264f4ec8c61d83f3717e83c7c87873c678a75d60670a002e185373d'
'6fc9612a76e2b50bb84130b0c40fcaccd04fe513e23ced398e707087459cc50e')
package() {
cd "$srcdir"
install -d "${pkgdir}/opt/${pkgname}"
mv YourKit-JavaProfiler-"${_version}"/* "${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:
|