aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libucontext/APKBUILD
blob: fe44511c322da462b470f8443c7393b4dbcdfce2 (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
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libucontext
pkgver=0.1.0
pkgrel=0
pkgdesc="ucontext function implementations"
url="http://github.com/kaniini/libucontext"

# not available on s390x.
# tests fail on x86 grsecurity for some reason, will be fixed in 0.2.0
arch="all !x86 !s390x"

license="ISC"
depends=""
install=""
subpackages="$pkgname-dev"
source="https://distfiles.dereferenced.org/libucontext/libucontext-$pkgver.tar.xz
	0001-build-use-absolute-path-for-LD_LIBRARY_PATH-when-tes.patch
	0002-x86-trampoline-kill-textrel.patch"
builddir="$srcdir/libucontext-$pkgver"

case "$CTARGET_ARCH" in
ppc64le)	LIBUCONTEXT_ARCH="ppc64" ;;
*)		LIBUCONTEXT_ARCH="$CTARGET_ARCH" ;;
esac

build() {
	cd "$builddir"
	make ARCH="$LIBUCONTEXT_ARCH"
}

check() {
	cd "$builddir"
	make ARCH="$LIBUCONTEXT_ARCH" check
}

package() {
	cd "$builddir"
	make ARCH="$LIBUCONTEXT_ARCH" DESTDIR="$pkgdir" install
}

sha512sums="abeae370317c53e6656842edd619e87202865d8f8808808f5ec5dfd40c259dcdc3ee530e0227ae602ca255215cf472e99ad1e3fbbb54f362c5a3cf744d9a1be4  libucontext-0.1.0.tar.xz
26e1933e822ddc83086295144e5e8dc09602ad9200703b0e8c832bee0ee335c62c758d9847058bb28baf248f825d00604cfa1b4cb9b48234760c0e92cafb296a  0001-build-use-absolute-path-for-LD_LIBRARY_PATH-when-tes.patch
dbcd8613379383fa488f525430383e2cf472c674b342f3f056f59081c73632fc8800bd22e1245ea5c2779039a095ed78bdac756f5037870115f4087b5dc3bd00  0002-x86-trampoline-kill-textrel.patch"