1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
4 pkgname=ocaml-${_pkgname}
7 pkgdesc="Compatibility Result module"
8 arch=('i686' 'x86_64' 'armv7h')
9 url="https://github.com/janestreet/result"
11 depends=('ocaml>=4.13.1')
12 makedepends=('ocaml-findlib' 'dune')
14 source=("https://github.com/janestreet/result/archive/${pkgver}.tar.gz")
15 sha512sums=('5ca3aab3b46bff7f4fa4517b5d823de196d7a97a8b94a8e416a5e237061482f4d0030c6a339291d5aa8f68020ee11aed743b730970105a2303e6a93d26ca676a')
18 cd "${srcdir}/${_pkgname}-${pkgver}"
24 cd "${srcdir}/${_pkgname}-${pkgver}"
26 install -dm755 "${pkgdir}$(ocamlfind printconf destdir)"
27 dune install --prefix "${pkgdir}/usr" \
28 --libdir "${pkgdir}$(ocamlfind printconf destdir)"
30 install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
31 mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"