aboutsummaryrefslogtreecommitdiffstats
path: root/testing/babeltrace/APKBUILD
blob: b7af05a6fcee245d094c1b816bb161d709247bb7 (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
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=babeltrace
pkgver=1.4.0
pkgrel=1
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
	make check || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

md5sums="fa99064048af5c9c6ff00e489ac809c2  babeltrace-1.4.0.tar.bz2"
sha256sums="9469eeb22617cd12668683b04c27003e5337e9ac66ade914988df3642fc0d0e4  babeltrace-1.4.0.tar.bz2"
sha512sums="963e190ed532c67a2a130a717aa2397d96fd1bba8d4c579a5a751f3454f8cc472d5ac8d2439b03cb817add0a0cd7cc83e55f459915741c30544cf101e5209801  babeltrace-1.4.0.tar.bz2"