ayaports/user/lttng-ust/APKBUILD

55 lines
1.2 KiB
Text
Raw Normal View History

2022-01-23 02:53:35 +00:00
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=lttng-ust
pkgver=2.13.1
pkgrel=0
pkgdesc="LTTng 2.0 Userspace Tracer"
url="https://lttng.org"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="userspace-rcu-dev>0.10"
makedepends="$depends_dev util-linux-dev linux-headers python3"
checkdepends="bash"
subpackages="$pkgname-doc $pkgname-dev $pkgname-tools::noarch py3-lttng:pyagent"
source="https://lttng.org/files/lttng-ust/lttng-ust-$pkgver.tar.bz2"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
--disable-numa \
--enable-python-agent
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python3|' "$pkgdir"/usr/bin/lttng-gen-tp
}
tools() {
pkgdesc="tools from lttng-ust"
depends="lttng-ust=$pkgver-r$pkgrel python3"
amove usr/bin
}
pyagent() {
pkgdesc="lttng-ust python agent"
depends="python3"
amove usr/lib/python*
amove usr/lib/liblttng-ust-python-agent.*
}
sha512sums="
3e81e1db54150ae0ced37fe27c5c08ba666c128cd4af8f0a788f80d7a017927244c1471aa919d892c7030a22b92eb45e98502fcabe8edfd8ffcdabd2698ad368 lttng-ust-2.13.1.tar.bz2
"