summaryrefslogtreecommitdiff
path: root/system/libucontext/APKBUILD
blob: 78b07943579a66ce2cb022f7cad1913466bf4d7d (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
33
34
35
36
37
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libucontext
pkgver=0.10
pkgrel=0
pkgdesc="Implementation of software-defined threading"
url=" "
arch="all"
license="ISC"
depends=""
makedepends=""
subpackages="$pkgname-dev"
source="https://distfiles.dereferenced.org/libucontext/libucontext-$pkgver.tar.xz
	git.patch
	"

case "$CTARGET_ARCH" in
aarch64_be)	LIBUCONTEXT_ARCH="aarch64" ;;
arm*)		LIBUCONTEXT_ARCH="arm" ;;
ppc64le)	LIBUCONTEXT_ARCH="ppc64" ;;
pmmx)		LIBUCONTEXT_ARCH="x86" ;;
*)		LIBUCONTEXT_ARCH="$CTARGET_ARCH" ;;
esac

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

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

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

sha512sums="ef04485f66edd94711a15681953aed12652ea3821036e6a5b10d1ba3c0371ffabd689c85ee2403bc6a94544932e64855d8f5412f46b50d8b5a934f70a771fcb1  libucontext-0.10.tar.xz
f3f5da2f76302fb3aeba8cca6e3485f264714ad12160e83ef92785a5f2a318cb4cea88e350df71dd6c976d075525361f36e67467ffb82b30fed6acee11be8095  git.patch"