#!/bin/bash # Build script for OCaml re library set -e # Find and enter the extracted source directory cd "$SRCDIR" # Ensure OCaml toolchain is in PATH export PATH="$PREFIX/bin:$PATH" # libatomic is at /usr/lib (hammerhead BSD layout) export LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH:-}" export LIBRARY_PATH="/usr/lib:${LIBRARY_PATH:-}" # Build only the re package (skip deprecated modules and tests) dune build -p re # Install to package directory dune install re --prefix=$PREFIX --destdir="$PKGDIR" # OCaml re - Regular expression library # https://github.com/ocaml/ocaml-re [package] name = "ocaml-re" version = "1.12.0" release = 1 description = "OCaml regular expression library" url = "https://github.com/ocaml/ocaml-re" license = "LGPL-2.1-or-later" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = ["ocaml", "ocaml-seq"] build = ["ocaml", "dune", "ocaml-seq"] [[source]] file = "ocaml-re-1.12.0.tar.gz" urls = [ "https://github.com/ocaml/ocaml-re/archive/refs/tags/1.12.0.tar.gz" ] checksum = "skip" extract = true [build] parallel = false