From b99f004b7048ded1b84dbf50d39e74552c2a1ece Mon Sep 17 00:00:00 2001 From: rubicon <5662-rubicon@users.gitlab.alpinelinux.org> Date: Sun, 15 May 2022 09:07:44 +0800 Subject: [PATCH] testing/ocaml-mikmatch: new aport --- testing/ocaml-mikmatch/APKBUILD | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 testing/ocaml-mikmatch/APKBUILD diff --git a/testing/ocaml-mikmatch/APKBUILD b/testing/ocaml-mikmatch/APKBUILD new file mode 100644 index 00000000000..c909d22d428 --- /dev/null +++ b/testing/ocaml-mikmatch/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: rubicon +# Maintainer: +pkgname=ocaml-mikmatch +_pkgname=mikmatch +pkgver=1.0.9 +pkgrel=0 +pkgdesc="OCaml syntax extension for regexps" +url="https://mjambon.github.io/mjambon2016/micmatch.html" +arch="all !riscv64" # restricted by ocaml +license="BSD-3-Clause" +depends="ocaml-runtime ocaml-camlp4 ocaml-pcre ocaml-tophide" +makedepends=" + ocaml + ocaml-camlp4-dev + ocaml-compiler-libs + ocaml-findlib + ocaml-pcre-dev + " +options="!check" +source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/mikmatch/releases/download/v$pkgver/mikmatch-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +# 32-bit archs +case "$CARCH" in + arm*|x86) options="$options textrels" ;; +esac + +build() { + make -j1 +} + +package() { + export OCAMLFIND_DESTDIR="$pkgdir"/usr/lib/ocaml + mkdir -vp "$OCAMLFIND_DESTDIR" + make install +} + +sha512sums=" +dcf62f67b01f039e0510446267f3d4b965daa6507631da71c8562f7eeedebf9859403d0be7a2e217365af95bb818d05de38ab4987d900a4050a1c5403a66fa5c ocaml-mikmatch-1.0.9.tar.gz +"