aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/APKBUILD
blob: 8ecf1c1a0c099de961010776a5b1aa37e04a28ea (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-tools
pkgver=2.9.0
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
	missing-pthread-include.patch
	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="75b5feb18aa2a136ebf70a14d2a5a6e5  lttng-tools-2.9.0.tar.bz2
7c8b69cca2afaf2b17461874ef0bc2e2  missing-pthread-include.patch
0efce284ccaf2a40d515981a107d8b75  musl-has-no-dlmopen.patch"
sha256sums="eff3003f3c37ae8f2921ba76de777171405935eec48f4c1a15abdda8d0859422  lttng-tools-2.9.0.tar.bz2
ca9a432ace06a47d23cd3ac793ac6fb0aa46da065b0e7eb72f71f1248cc11274  missing-pthread-include.patch
937501ebba41568872abc28da58e1f8d1d033ae6f3d761f132f75434955de64c  musl-has-no-dlmopen.patch"
sha512sums="d33c1d0ec7f26827a6fdcb0ab0f329c97ccac4bc6fc2ea80a4d824600d58ae766593a9ac923681c2d73cd9632a17adc06dfd15e246077f68eedffb1a20327419  lttng-tools-2.9.0.tar.bz2
04cb96de65ba4d111cd9d3e128a029514c8157f29b21db811da451fbf0a892f883361d7092983605c087c8beaa6387b3384c39dce9af4a0e7db706aab4702cbd  missing-pthread-include.patch
cb5136007b0d8ea0a84557ab025e709dc4c5d818272f057a9f6c78ed7cf5104b9d904a1b8c5e8674e3455fe85dc28bb890c190cc04f0c1d9c29d87b40dadb88b  musl-has-no-dlmopen.patch"