# Contributor: Michael Jeanson # Maintainer: Michael Jeanson pkgname=lttng-tools pkgver=2.9.5 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/ } sha512sums="c66c3bd7f2e1448309d490147dd33502afe8f65c8024cb616e1ba4f877545dc2291d694f9211d1853d0cdca79dbff18b808348adcb489ee28953412492db7f3d lttng-tools-2.9.5.tar.bz2 cb5136007b0d8ea0a84557ab025e709dc4c5d818272f057a9f6c78ed7cf5104b9d904a1b8c5e8674e3455fe85dc28bb890c190cc04f0c1d9c29d87b40dadb88b musl-has-no-dlmopen.patch"