mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-13 19:44:22 +02:00
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
63 lines
1.5 KiB
Text
63 lines
1.5 KiB
Text
# Contributor: rubicon <rubicon@mailo.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=ocaml-mikmatch
|
|
_pkgname=mikmatch
|
|
pkgver=1.0.9
|
|
pkgrel=2
|
|
pkgdesc="OCaml syntax extension for regexps"
|
|
url="https://mjambon.github.io/mjambon2016/micmatch.html"
|
|
arch="all !riscv64 !loongarch64" # ocaml
|
|
license="BSD-3-Clause"
|
|
depends="ocaml-tophide"
|
|
makedepends="
|
|
coreutils
|
|
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
|
|
}
|
|
|
|
prepare_py_provides() {
|
|
local datadir="${subpkgdir:-$pkgdir}"
|
|
local pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
|
|
local controldir="$pkgbasedir"/.control.${subpkgname:-$pkgname}
|
|
|
|
options_has "!tracedeps" && return 0
|
|
|
|
ocaml4-abuild-find provides \
|
|
"$datadir"/usr/lib/ocaml \
|
|
"$controldir" \
|
|
"$pkgver-r$pkgrel"
|
|
}
|
|
|
|
scan_python3_dependency() {
|
|
local controldir="$2" datadir="$3"
|
|
|
|
ocaml4-abuild-find requires \
|
|
"$datadir"/usr/lib/ocaml \
|
|
"$controldir"
|
|
}
|
|
|
|
sha512sums="
|
|
dcf62f67b01f039e0510446267f3d4b965daa6507631da71c8562f7eeedebf9859403d0be7a2e217365af95bb818d05de38ab4987d900a4050a1c5403a66fa5c ocaml-mikmatch-1.0.9.tar.gz
|
|
"
|