blob: c6474a94194734c94d157168adf77bc389e2a9de (
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
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libucontext
pkgver=0.1.1
pkgrel=0
pkgdesc="ucontext function implementations"
url="http://github.com/kaniini/libucontext"
arch="all"
license="ISC"
depends=""
install=""
subpackages="$pkgname-dev"
source="https://distfiles.dereferenced.org/libucontext/libucontext-$pkgver.tar.xz"
builddir="$srcdir/libucontext-$pkgver"
case "$CTARGET_ARCH" in
armhf) LIBUCONTEXT_ARCH="arm" ;;
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="a56dc9c4f9773f09b61079f96dba8cab74c89cbc9eec8373dd697793e18c7dc601bf47e47f3381a62400e25fe3d215d27ac1de11007f27af60e58c5804f67839 libucontext-0.1.1.tar.xz"
|