makedeb


yourkit 2024.9.b158-1


Java CPU and memory profiler.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for yourkit.

# Maintainer: Matthias Mailänder <matthias@mailaender.name>
pkgname=yourkit
_version=2024.9
_build=158
pkgver=${_version}.b${_build}
pkgrel=1
pkgdesc='Java CPU and memory profiler.'
arch=('amd64')
depends=(desktop-file-utils bash)
options=(!strip)
license=('custom')
url='https://www.yourkit.com/java/profiler/'

source=('https://download.yourkit.com/yjp/2024.9/YourKit-JavaProfiler-2024.9-b158-x64.zip'
        yourkit-yjp.desktop
        yourkit.sh)
sha256sums=('e8fce10e99c59437a700f9659abb7bdad1d7e092a39ea3951e3b580d0ba90466'
            'b071670d8264f4ec8c61d83f3717e83c7c87873c678a75d60670a002e185373d'
            '6fc9612a76e2b50bb84130b0c40fcaccd04fe513e23ced398e707087459cc50e')
noextract=()

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
}