|
root / lang / ocaml-re / build.sh
build.sh Bash 21 lines 510 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/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"