1 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
2 _pkgname='bigarray-compat'
3 pkgname="ocaml-${_pkgname}"
6 pkgdesc="Compatibility library to use Stdlib.Bigarray when possible"
8 url="https://github.com/mirage/bigarray-compat"
10 depends=("ocaml>=4.14.0")
11 makedepends=("ocaml-compiler-libs" "dune")
12 source=("https://github.com/mirage/${pkgname#ocaml-}/archive/refs/tags/v${pkgver}.tar.gz")
13 sha512sums=('c365fee15582aca35d7b05268cde29e54774ad7df7be56762b4aad78ca1409d4326ad3b34af0f1cc2c7b872837290a9cd9ff43b47987c03bba7bba32fe8a030f')
16 cd "${srcdir}/${_pkgname}-${pkgver}"
17 dune build -p $_pkgname
21 cd "${srcdir}/${_pkgname}-${pkgver}"
22 DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir "/usr/lib/ocaml"
24 install -dm755 "${pkgdir}/usr/share/"
25 mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"