# Maintainer: Vadim Tsesko pkgname=async-profiler pkgver=2.9 pkgrel=1 pkgdesc='Sampling CPU and HEAP profiler for Java featuring AsyncGetCallTrace + perf_events' arch=('x86_64') url='https://github.com/jvm-profiling-tools/async-profiler' license=('Apache') provides=('async-profiler') groups=('jvm-profiling-tools' 'odnoklassniki') depends=('java-environment') source=("$pkgname-$pkgver.tar.gz::https://github.com/jvm-profiling-tools/async-profiler/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('c940eb0926e02fa82cf8e52984077a30e6020292c525d086c633b4720f4095d3') install=async-profiler.install build() { cd "$pkgname-$pkgver" make all } package() { cd "$pkgname-$pkgver" install -d "$pkgdir/opt/async-profiler/build" install -m 644 build/async-profiler.jar build/converter.jar "$pkgdir/opt/async-profiler/build" install build/libasyncProfiler.so build/jattach build/fdtransfer "$pkgdir/opt/async-profiler/build" install profiler.sh "$pkgdir/opt/async-profiler/profiler.sh" }