aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-ust/APKBUILD
blob: a12ff7a3da7ea9fbb41df482f5cdcd92fac450e5 (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=lttng-ust
pkgver=2.8.1
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 bash"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://lttng.org/files/$pkgname/$pkgname-$pkgver.tar.bz2"

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="be505077245dc05f93370a565eec15f4  lttng-ust-2.8.1.tar.bz2"
sha256sums="6e41349107e83e7b43c69ed358e48788ca2fd095bad61737b850e3f3d2c0508a  lttng-ust-2.8.1.tar.bz2"
sha512sums="15c459620cb73ef5be8c7df2ef02663ef650555b973a3d1ed976ae38068b53a8c83143a611bcb53e91a3f211361c44cd2a331cb41dd53d28a69924f7ac44cc95  lttng-ust-2.8.1.tar.bz2"