aboutsummaryrefslogtreecommitdiffstats
path: root/testing/babeltrace/APKBUILD
blob: aaa9dc1c4172f879e39fae815febcc986c84703d (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.5.5
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
	make V=1
}

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

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

sha512sums="565a34bad642358286d14b77dba190ec7182992d94f626925e7b02667ddfbd705d0571375f36e1691fef159a0ca5f8422b35e453028cd96d02fbdb2a9d8412a3  babeltrace-1.5.5.tar.bz2"