mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +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
57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
# Contributor: rubicon <rubicon@mailo.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=ocaml-stdlib-shims
|
|
_pkgname=stdlib-shims
|
|
pkgver=0.3.0
|
|
pkgrel=2
|
|
pkgdesc="OCaml Shims to substitute Pervasives with Stdlib"
|
|
url="https://github.com/ocaml/stdlib-shims"
|
|
arch="all !riscv64 !loongarch64" # ocaml
|
|
license="LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
|
|
makedepends="dune ocaml ocaml-findlib ocaml-compiler-libs"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/stdlib-shims/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
dune build @install
|
|
}
|
|
|
|
check() {
|
|
dune runtest
|
|
}
|
|
|
|
package() {
|
|
dune install \
|
|
--destdir="$pkgdir" \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib/ocaml
|
|
|
|
# There's just a readme and changelog.
|
|
rm -Rf "$pkgdir"/usr/doc
|
|
}
|
|
|
|
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="
|
|
c4f2a6dc38171e1d2125cc30e5d63f64f49d8ed011df6588dfa0b51f9dc634f9e8771d6237110c7d1d5e81e161dd5112eaae8df71ee3a7d8a010c2732fcc75ca ocaml-stdlib-shims-0.3.0.tar.gz
|
|
"
|