aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-ust/APKBUILD
blob: b9ee1471c4007f0c00be2a8517f6aef6d645215b (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
48
49
50
51
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=lttng-ust
pkgver=2.9.0
pkgrel=0
pkgdesc="LTTng 2.0 Userspace Tracer"
url="https://lttng.org"
arch="all"
license="LGPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev userspace-rcu-dev util-linux-dev linux-headers bash"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://lttng.org/files/$pkgname/$pkgname-$pkgver.tar.bz2
        musl-has-no-dlmopen.patch"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		|| return 1
	make V=1 || return 1
	make check || return 1
}

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

dev() {
	default_dev
	# Move back examples files that are wrongly included
	# by the default dev splitfunc
	cp -pr "$subpkgdir"/usr/share/doc/$pkgname \
		"$pkgdir"/usr/share/doc/
	rm -rf "$subpkgdir"/usr/share/doc/$pkgname
}

md5sums="77f3378ba37a36801420bce87b702e9c  lttng-ust-2.9.0.tar.bz2
90cb166ae29bd68b71f016a7d8144853  musl-has-no-dlmopen.patch"
sha256sums="4d541a863f42dfc685ca05024027a442c70d03594c154a43e62bc109b1ea5daf  lttng-ust-2.9.0.tar.bz2
10011dc0d8c300400c5da86867912f3600d5c40a1d45e20fd6cd544c860b4e85  musl-has-no-dlmopen.patch"
sha512sums="72cbc167918d7675f86314dd9ecca91bfbf2a0c94e8befecc03633296a3d071049ab9dccd9f75e03e67b95518a8917096652d90c88e0daf17fe6b31b2df28d17  lttng-ust-2.9.0.tar.bz2
1b5d88ac0fe340b93fe0e1b391e63d069d104bf11e8b418a594a3e50eb6266aea51daeb36dbda8d39b862bd71bce4146c90fd3a9f7b878754b27b676d149f8e8  musl-has-no-dlmopen.patch"