From dcbf3b813f0bdabdb8f163d74ecc15e04b20db53 Mon Sep 17 00:00:00 2001
From: omni <omni+alpine@hack.org>
Date: Mon, 27 Sep 2021 00:08:23 +0000
Subject: [PATCH] testing/ocaml-extlib: rebuild against ocaml 4.13.0

Also enable on archs supported by ocaml aport
---
 testing/ocaml-extlib/APKBUILD | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/testing/ocaml-extlib/APKBUILD b/testing/ocaml-extlib/APKBUILD
index c940509b441b..2c268e4bc7e7 100644
--- a/testing/ocaml-extlib/APKBUILD
+++ b/testing/ocaml-extlib/APKBUILD
@@ -2,16 +2,21 @@
 # Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
 pkgname=ocaml-extlib
 pkgver=1.7.8
-pkgrel=0
+pkgrel=1
 pkgdesc="OCaml ExtLib additions to the standard library"
 url="https://github.com/ygrek/ocaml-extlib"
-arch="aarch64 ppc64le x86_64" # restricted by ocaml
+arch="all !mips64 !riscv64" # limited by ocaml
 license="LGPL-2.1-or-later-WITH-linking-exception"
 makedepends="ocaml ocaml-findlib-dev ocaml-ocamldoc ocaml-cppo gawk"
 subpackages="$pkgname-dev $pkgname-doc"
 source="https://github.com/ygrek/ocaml-extlib/releases/download/$pkgver/extlib-$pkgver.tar.gz"
 builddir="$srcdir/extlib-$pkgver"
 
+# 32bit archs
+case "$CARCH" in
+    arm*|x86) options="$options textrels" ;;
+esac
+
 build() {
 	cd "$builddir"
 	make build
-- 
GitLab