# Contributor: rubicon # Maintainer: pkgname=ocaml-fpath _pkgname=fpath pkgver=0.7.3 pkgrel=1 pkgdesc="File system paths for OCaml" url="https://erratique.ch/software/fpath" arch="all !riscv64" # limited by ocaml aport license="ISC" depends="ocaml-runtime ocaml-astring" depends_dev="$pkgname=$pkgver-r$pkgrel ocaml-astring-dev" makedepends=" $depends_dev ocaml ocamlbuild ocaml-findlib ocaml-compiler-libs ocaml-topkg cmd:opam-installer " subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.bz2::https://erratique.ch/software/fpath/releases/fpath-$pkgver.tbz" builddir="$srcdir/$_pkgname-$pkgver" _ocamldir=usr/lib/ocaml # 32-bit archs case "$CARCH" in arm*|x86) options="$options textrels" ;; esac build() { ocaml pkg/pkg.ml build } package() { opam-installer -i \ --prefix="$pkgdir"/usr \ --libdir="$pkgdir/$_ocamldir" \ --docdir="$builddir"/.omit \ $_pkgname.install } 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=" acf4b379aee3c25305ef71d1b97b154faa6de1e8248a8e8d046cf11090a3e94f2dc048b961bb51725ca7384e784455f2893fbd51f26bf80571a9cc7e9475b945 ocaml-fpath-0.7.3.tar.bz2 "