aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/APKBUILD
blob: 5df3ae3af3b97952ba1f8b1b481098868d6e3aeb (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
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=lttng-tools
pkgver=2.10.7
pkgrel=0
pkgdesc="LTTng 2.0 control and utility programs"
url="https://lttng.org"
arch="all !aarch64"
license="GPL-2.0"
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 libtool"
checkdepends="util-linux"
subpackages="$pkgname-dev $pkgname-doc"
source="https://lttng.org/files/lttng-tools/lttng-tools-$pkgver.tar.bz2"

build() {
	unset LDFLAGS
	# We patch Makefile.am
	autoreconf -fi
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make V=1
}

check() {
	# only run ubnit tests. all tests takes too much time
	make -j1 -C tests/unit check
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
	mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="1151f8f251d05959e7ec597dfcece2a968887c4551cfb238d30447b0d93b25d23a1cfbc4f3a6651a8c2c7dd95119a0d8886bbe43ff50b28c6c9ca9f4f109d3b7  lttng-tools-2.10.7.tar.bz2"