1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
6 pkgdesc='Library for binding to C libraries using pure OCaml'
8 url=https://github.com/ocamllabs/ocaml-integers
11 makedepends=('dune' 'ocaml-topkg' 'ocaml-findlib' 'ocaml-compiler-libs>=4.14.0' 'ocamlbuild' 'opam' 'ocaml-stdlib-shims')
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/$pkgname/archive/$pkgver.tar.gz")
13 sha256sums=('8bb517fa9a1818246eb8c4ce34ee1489fbebb4b92defa3a25d13cab8d23ec685')
18 dune build --profile release
24 opam-installer --prefix="${pkgdir}/usr" \
25 --libdir="${pkgdir}$(ocamlc -where)" \
26 --docdir="${pkgdir}/usr/share/doc" \
27 --stubsdir="${pkgdir}$(ocamlc -where)/stublibs" \
28 ./_build/default/integers.install
29 install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE.md