blob: f046415d14c0606e146f24969a9b80cdb7852daf (
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
|
# Maintainer: Bian Jiaping <ssbianjp [AT] gmail.com>
pkgname=arthas
pkgver=3.7.2
pkgrel=1
pkgdesc="Arthas is a Java Diagnostic tool open sourced by Alibaba"
arch=('x86_64')
url="https://github.com/alibaba/arthas"
license=('APACHE')
depends=('java-runtime-headless>=6')
source=(
"arthas-$pkgver.zip::https://github.com/alibaba/arthas/releases/download/arthas-all-${pkgver}/arthas-bin.zip"
"arthas.sh"
)
sha256sums=(
'6e1968f8933df057b03553ce07b845a83fb43d002464b50fc3f3dedbe2ed802b'
'ce16fa1a08024a4b41c1a0017d3f0d8e155599c6d99f99bb56eac6f3ddc21069'
)
package() {
mkdir -p "$pkgdir"/opt/arthas/{async-profiler,lib}
cp -rp "$srcdir"/arthas-*.jar "$srcdir"/arthas.properties "$srcdir"/logback.xml "$pkgdir"/opt/arthas/
cp -rp "$srcdir"/async-profiler/*linux-x64* "$pkgdir"/opt/arthas/async-profiler/
cp -rp "$srcdir"/lib/*.so "$pkgdir"/opt/arthas/lib/
rm -f "$pkgdir"/opt/arthas/arthas-demo.jar
rm -f "$pkgdir"/opt/arthas/lib/libArthasJniLibrary-aarch64.so
install -Dm755 arthas.sh "$pkgdir"/usr/bin/arthas
}
|