aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/APKBUILD
blob: f009b9f7fc2252a15e7b66a35cff6bccdaed237f (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Maintainer: Michael Jeanson <mjeanson@efficios.com>
pkgname=lttng-tools
pkgver=2.8.1
pkgrel=0
pkgdesc="LTTng 2.0 control and utility programs"
url="https://lttng.org"
arch="all"
license="GPL2"
depends="babeltrace"
depends_dev="popt-dev libxml2-dev userspace-rcu-dev lttng-ust-dev kmod-dev
	util-linux-dev"
makedepends="$depends_dev bash grep coreutils automake autoconf"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://lttng.org/files/$pkgname/$pkgname-$pkgver.tar.bz2
	0002-Fix-snapshot-del-output-with-name-on-musl.patch
	0008-Fix-missing-include-ctype.h-for-isdigit.patch
	0003-Fix-error.h-common-error.h.patch
	0009-Fix-location-of-various-standard-header-includes.patch
	0004-Fix-strerror_r-behavior-is-glibc-specific.patch
	0010-Set-thread-stack-size-to-ulimit-soft-value.patch"

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

build() {
	cd "$builddir"

	unset LDFLAGS
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		|| return 1
	make V=1 || return 1
	make -j1 check || return 1
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
	mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/
}

md5sums="276e72f68bff75eb7abc9b8c2ecd9f03  lttng-tools-2.8.1.tar.bz2
f592a8ca1e4e5125a2c7bebe8725ecbe  0002-Fix-snapshot-del-output-with-name-on-musl.patch
caf2e21365cad8940f984affc83da5ad  0008-Fix-missing-include-ctype.h-for-isdigit.patch
f10946cbfeadd54035ea6088cfceb7f1  0003-Fix-error.h-common-error.h.patch
54a29190c3e2e7165b1c615973f2dee1  0009-Fix-location-of-various-standard-header-includes.patch
80c64f3e33d46f68372578afc11e254f  0004-Fix-strerror_r-behavior-is-glibc-specific.patch
51a51e03cd4fabd812168bac4fc235dc  0010-Set-thread-stack-size-to-ulimit-soft-value.patch"
sha256sums="e8e030c111a6fb509d640206c26175ff997c06c2b93224c0ef7964c7d813e492  lttng-tools-2.8.1.tar.bz2
117f3876419a78ab1d9638bce63afd75dbd1cfcbfd15d52542f34c2c5591b983  0002-Fix-snapshot-del-output-with-name-on-musl.patch
ee57eebe3baef7f784a3b45f2cab47af40205cb279fe57586dc1ef0384441e5e  0008-Fix-missing-include-ctype.h-for-isdigit.patch
11380dafa6f4a02225a754518ae9792d31e4e0a2a30895b9544dc30b423f0edd  0003-Fix-error.h-common-error.h.patch
a14dc45efdd9a978c4fdae06d400b11c9ee770710596551e9212e6ac966ec89d  0009-Fix-location-of-various-standard-header-includes.patch
1a8777ab9d724bdef7b76619777b733522d1bb3bed6df96887ef4820d17a6f72  0004-Fix-strerror_r-behavior-is-glibc-specific.patch
759ef937508d3dfa3f58f2b31793277139575b09743f857705c8e6947d50f28b  0010-Set-thread-stack-size-to-ulimit-soft-value.patch"
sha512sums="76dec338e9ab6efbb950c2503f712b558c5b76919934e981a5db8d17c33e6df2d56b6db5a1f35afe98310862a800a4b5adc337b5ed9ab189dd168426b9448172  lttng-tools-2.8.1.tar.bz2
9ed87e171a286126d3c09eb53104084b1baf7417baf1aaa998a523bb0cc1388d783e1a3c47218b5dfae17792e3587808594423224cecbc198f133eba3a5487b6  0002-Fix-snapshot-del-output-with-name-on-musl.patch
57c424f7ae28283c2d8b43c08afdb23c5aeeee3fdd6db41450b6117116b28cd0f2fa3708f3d431b1565c097ec3d14e8e4cca3427f9f04ef198fe4c9847286aac  0008-Fix-missing-include-ctype.h-for-isdigit.patch
3dec5721b6c89fd101b873b8c862963279c395e155b1dc5ae3461bf97943b269c29a814f3a1d2650a07687dff2c34f383aadd884f6c0e84fbc928dd43c17cb87  0003-Fix-error.h-common-error.h.patch
96386508a157b2c8bf68c026f50e50b76a1b2d25c8556b904ec3acee6160c79dbfa8e22c0d5eeef7b37187152d4abc300ad2518acb2bcf3e3736c0057d8addbe  0009-Fix-location-of-various-standard-header-includes.patch
b996a0b21add39b3a9bd6850ff89946b8203f4b6a39e014fe7a65171205d97f93fad388d0636edce4381481d739773ebfc26c98a6d22f70eea7245e845727355  0004-Fix-strerror_r-behavior-is-glibc-specific.patch
13dda11c7d882bc1ec67219457fee90f55668a1ec945bcc8e15a2a520856d9daf2e28721ebb096134e169e0c4fbd1281ecb0e503d3c74c8099d0ab0a4b73c573  0010-Set-thread-stack-size-to-ulimit-soft-value.patch"