# Contributor: Michael Jeanson # Maintainer: Michael Jeanson pkgname=babeltrace pkgver=1.5.0 pkgrel=0 pkgdesc="a trace converter and read/write library" url="https://www.efficios.com/babeltrace" arch="all" license="MIT" depends="" depends_dev="glib-dev" makedepends="$depends_dev popt-dev util-linux-dev bash perl" install="" subpackages="$pkgname-dev $pkgname-doc" source="https://www.efficios.com/files/$pkgname/$pkgname-$pkgver.tar.bz2" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" # This package uses _init functions to initialise extensions. With # --as-needed this will not work. export LDFLAGS="$LDFLAGS -Wl,--no-as-needed" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ --disable-debug-info \ || return 1 make V=1 || return 1 [ "$CARCH" = "aarch64" ] || make check || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } md5sums="43696383e44d1b85173db7cbd0335f06 babeltrace-1.5.0.tar.bz2" sha256sums="354e75d74562f5228ab89e5fa16a3b4dffa95e7230c5086b74ffcf11fef60353 babeltrace-1.5.0.tar.bz2" sha512sums="921f2dd42269f00054e4f1fa9b6de0f6871e6eec57916659f4b73916e384723caa4a6cb9c48a002dc8675d55fb3f0bc52b0045aaccc315451854fa5a35d76e9e babeltrace-1.5.0.tar.bz2"