|
root / lang / ocaml-stdlib-shims
ocaml-stdlib-shims Plain Text 37 lines 809 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Build script for OCaml stdlib-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"
[package]
name = "ocaml-stdlib-shims"
version = "0.3.0"
description = "Backport newer stdlib features to older OCaml compilers"
homepage = "https://github.com/ocaml/stdlib-shims"
license = "LGPL-2.1"

[dependencies]
build = ["ocaml", "dune"]
runtime = ["ocaml"]

[[source]]
file = "stdlib-shims-0.3.0.tar.gz"
urls = [
    "https://github.com/ocaml/stdlib-shims/archive/refs/tags/0.3.0.tar.gz"
]
checksum = "skip"
extract = true