# Contributor: Michael Jeanson # Maintainer: Michael Jeanson 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"