aboutsummaryrefslogtreecommitdiffstats
path: root/testing/babeltrace/APKBUILD
blob: 66ac85f43d56b3f619cfd4541f3f31dda52a8c2a (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
45
46
47
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=babeltrace
pkgver=1.4.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

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--disable-debug-info \
		|| return 1
	make || 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"