aboutsummaryrefslogtreecommitdiffstats
path: root/testing/babeltrace/APKBUILD
blob: a4c05587a3c8121fad7275d4bf7c4bf1c3ddbade (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=babeltrace
pkgver=1.5.6
pkgrel=0
pkgdesc="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
	make V=1
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c69f56449ca64751a2b031dec9ae49d207030970beb18fbfda56678b335602a6fb3c60fb05f4e8ac3e1a31cf69ec4bb7c1ceb47db1b94df241300223b3daf6a4  babeltrace-1.5.6.tar.bz2"