summaryrefslogtreecommitdiff
path: root/system/libucontext/APKBUILD
blob: 425b7ec9637477d7e3773d04105b15ea492cac63 (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
38
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libucontext
pkgver=0.1.2
pkgrel=1
pkgdesc="ucontext function implementations"
url="https://git.dereferenced.org/kaniini/libucontext/"
arch="all"
license="ISC"
depends=""
subpackages="$pkgname-dev"
source="https://distfiles.dereferenced.org/libucontext/libucontext-$pkgver.tar.xz
	0001-Reorder-registers-in-other-assembler-files.patch
	"

case "$CTARGET_ARCH" in
armhf)		LIBUCONTEXT_ARCH="arm" ;;
ppc64le)	LIBUCONTEXT_ARCH="ppc64" ;;
pmmx)		LIBUCONTEXT_ARCH="x86" ;;
*)		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="0c1d74341487d3128667abe9b6594f70c41b4e26bfff656c96eff5de55795f3f4186b3f46281503daf0ee3694a3c10966dd733a6779f49544759a5fe8e6fcdf5  libucontext-0.1.2.tar.xz
7f3904e5a10db88cfb3e201b0b370c8c04da5ef33fbf9e177a9bc2da5defbe984057c4be1d1e74672b59a9d4978cf0a7233dc3d661c53aeba355ea91d1ebc24b  0001-Reorder-registers-in-other-assembler-files.patch"