summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-22 00:42:05 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-22 00:42:05 -0500
commitf10b4ccab3230214350072239d6626c7e6acc8f7 (patch)
treec27ce760c917470046ee83d6424bac2d616a6276
parente5948b872087d4bd939ee52921146417967f3fd9 (diff)
downloadpackages-f10b4ccab3230214350072239d6626c7e6acc8f7.tar.gz
packages-f10b4ccab3230214350072239d6626c7e6acc8f7.tar.bz2
packages-f10b4ccab3230214350072239d6626c7e6acc8f7.tar.xz
packages-f10b4ccab3230214350072239d6626c7e6acc8f7.zip
system/libucontext: pull in for gcc-go
-rw-r--r--system/libucontext/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/system/libucontext/APKBUILD b/system/libucontext/APKBUILD
new file mode 100644
index 000000000..c6474a941
--- /dev/null
+++ b/system/libucontext/APKBUILD
@@ -0,0 +1,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"