summaryrefslogtreecommitdiff
path: root/main/lttng-ust/APKBUILD
blob: 4181b335033abc67d824338cc92b2503273b485f (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
53
54
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=lttng-ust
pkgver=2.13.3
pkgrel=1
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="
7d83c64a86698e85cf1133cd2551e4e5f9f2544175fb756f47ec821ece24995305dc892dd681ac24fdb58956ed2c1d982f60b108bc6fbbc17b9244cc4b82d876  lttng-ust-2.13.3.tar.bz2
"