aboutsummaryrefslogtreecommitdiffstats
path: root/main/libucontext/APKBUILD
blob: c625b8de4be624465c71860bc6d6daab8c3050cf (plain) (blame)
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
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=libucontext
pkgver=1.1
pkgrel=0
pkgdesc="ucontext function implementations"
url="https://github.com/kaniini/libucontext"
arch="all"
license="ISC"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="scdoc"
source="https://distfiles.dereferenced.org/libucontext/libucontext-$pkgver.tar.xz"

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

build() {
	make ARCH="$LIBUCONTEXT_ARCH"
	make ARCH="$LIBUCONTEXT_ARCH" docs
}

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

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

sha512sums="2692cf03753f20508094ccf736a5678d1e2564540aa6f82ba04806ee731325aeb05ebfe63dd78d752988ae002ac95ec56880886f40dcb1c88db51f5472445b65  libucontext-1.1.tar.xz"