aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/APKBUILD
blob: 075e8dcaa5719dea55611dd5fadda7b7ed61ffd8 (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
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=lttng-tools
pkgver=2.9.3
pkgrel=0
pkgdesc="LTTng 2.0 control and utility programs"
url="https://lttng.org"
arch="all !aarch64"
license="GPL2"
depends="babeltrace"
depends_dev="popt-dev libxml2-dev userspace-rcu-dev lttng-ust-dev kmod-dev
	util-linux-dev"
makedepends="$depends_dev bash grep coreutils automake autoconf"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://lttng.org/files/$pkgname/$pkgname-$pkgver.tar.bz2
	musl-has-no-dlmopen.patch"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	unset LDFLAGS
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		|| return 1
	make V=1 || return 1
	make -j1 check || return 1
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
	mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/
}

md5sums="19fdcc5e9c307ef66581a2743a08a541  lttng-tools-2.9.3.tar.bz2
0efce284ccaf2a40d515981a107d8b75  musl-has-no-dlmopen.patch"
sha256sums="a6e6baaaa977dcbc9bce6b675881eec664599b86f0d905a7b0b508539407b24e  lttng-tools-2.9.3.tar.bz2
937501ebba41568872abc28da58e1f8d1d033ae6f3d761f132f75434955de64c  musl-has-no-dlmopen.patch"
sha512sums="eebfa829628e93957fe4896da01bce6361f16327d5e9253d4b69985e3be01f4bc78d5fa2e8fcc66630ef68d33b5d8a5909cb36bf23af31f1f63908f0c67742b6  lttng-tools-2.9.3.tar.bz2
cb5136007b0d8ea0a84557ab025e709dc4c5d818272f057a9f6c78ed7cf5104b9d904a1b8c5e8674e3455fe85dc28bb890c190cc04f0c1d9c29d87b40dadb88b  musl-has-no-dlmopen.patch"