aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-01-11 11:14:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-01-11 11:25:50 +0000
commit07b24a1af666200053ac6be89579ce6a4e579350 (patch)
tree2373f7ead885d9d9c8d5a91a26f29e985547fe28
parent805c0e108100e191682377a60cb250f42b8cced0 (diff)
downloadaports-07b24a1af666200053ac6be89579ce6a4e579350.tar.gz
aports-07b24a1af666200053ac6be89579ce6a4e579350.tar.bz2
aports-07b24a1af666200053ac6be89579ce6a4e579350.tar.xz
main/libucontext0: new aport
we need be able to install libucontext.so.0 and libucontext.so.1 in parallel since it is a dependency of gcc. At least til all builders has libucontext upgraded.
-rw-r--r--main/libucontext0/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/libucontext0/APKBUILD b/main/libucontext0/APKBUILD
new file mode 100644
index 0000000000..06c4cb1b44
--- /dev/null
+++ b/main/libucontext0/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
+pkgname=libucontext0
+pkgver=0.13.1
+pkgrel=0
+pkgdesc="ucontext function implementations compat for abi version 0"
+url="https://github.com/kaniini/libucontext"
+arch="all"
+license="ISC"
+source="https://distfiles.dereferenced.org/libucontext/libucontext-$pkgver.tar.xz"
+replaces=libucontext
+builddir="$srcdir"/libucontext-$pkgver
+
+case "$CTARGET_ARCH" in
+ arm*) LIBUCONTEXT_ARCH="arm" ;;
+ ppc64le) LIBUCONTEXT_ARCH="ppc64" ;;
+ *) LIBUCONTEXT_ARCH="$CTARGET_ARCH" ;;
+esac
+
+build() {
+ make ARCH="$LIBUCONTEXT_ARCH"
+}
+
+check() {
+ make ARCH="$LIBUCONTEXT_ARCH" check
+}
+
+package() {
+ install -Dm644 libucontext.so.0 "$pkgdir"/usr/lib/libucontext.so.0
+}
+
+sha512sums="b39c9b97bb64054ac1a95ab2f531977e9db6e6cb5ffbbc7f22e129000b0e9418331bd6b9620f1b77d0fd5df5679b4d785e0c47ab6581baed10a1905cddd9ca7b libucontext-0.13.1.tar.xz"