# Contributor: rubicon # Maintainer: pkgname=ocaml-gmap _pkgname=gmap pkgver=0.3.0 pkgrel=1 pkgdesc="Heterogenous maps over a GADT" url="https://github.com/hannesm/gmap" arch="all !riscv64" # limited by ocaml aport license="ISC" depends="ocaml-runtime" depends_dev="$pkgname=$pkgver-r$pkgrel" makedepends="dune ocaml" checkdepends="ocaml-alcotest-dev ocaml-fmt-dev" options="!check" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.bz2::https://github.com/hannesm/gmap/releases/download/$pkgver/gmap-$pkgver.tbz" builddir="$srcdir/$_pkgname-$pkgver" _ocamldir=usr/lib/ocaml # 32-bit archs case "$CARCH" in arm*|x86) options="$options textrels" ;; esac build() { dune build --release --verbose } check() { dune runtest --verbose } package() { dune install \ --destdir="$pkgdir" \ --docdir=/.omit rm -Rf "$pkgdir"/.omit } dev() { default_dev cd "$pkgdir" local path; for path in $(find $_ocamldir \( \ -name '*.cmt' -o \ -name '*.cmti' -o \ -name '*.cmx' -o \ -name '*.cmxa' -o \ -name '*.ml' -o \ -name '*.mli' \ \)) do amove "$path" done } sha512sums=" 71616981f5a15d6b2a47e18702083e52e81f6547076085b1489f676f50b0cc47c7c2c4fa19cb581e2878dc3d4f7133d0c50d8b51a8390be0e6e30318907d81d3 ocaml-gmap-0.3.0.tar.bz2 "