From 88dd277f61d3c89b16910f54c5b26271e115052a Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 15 Mar 2018 05:22:49 +0000 Subject: main/libucontext: move from testing --- main/libucontext/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 main/libucontext/APKBUILD (limited to 'main/libucontext') diff --git a/main/libucontext/APKBUILD b/main/libucontext/APKBUILD new file mode 100644 index 0000000000..c6474a9419 --- /dev/null +++ b/main/libucontext/APKBUILD @@ -0,0 +1,36 @@ +# Maintainer: William Pitcock +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" -- cgit v1.2.3