|
root / lang / ocaml-syntax-shims / build.sh
build.sh Bash 19 lines 387 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# Build script for OCaml ocaml-syntax-shims library

set -e

cd "$SRCDIR"

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 with dune
dune build

# Install to package directory
dune install --prefix=$PREFIX --destdir="$PKGDIR"