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.14.0')
12 makedepends=('ocaml-findlib' 'dune')
14 source=("https://github.com/janestreet/result/archive/${pkgver}.tar.gz")
15 sha256sums=('1072a8b0b35bd6df939c0670add33027f981e4f69a53233cb006b442fa12af30')
20 cd "${srcdir}/${_pkgname}-${pkgver}"
26 cd "${srcdir}/${_pkgname}-${pkgver}"
28 install -dm755 "${pkgdir}$(ocamlfind printconf destdir)"
29 dune install --prefix "${pkgdir}/usr" \
30 --libdir "${pkgdir}$(ocamlfind printconf destdir)"
32 install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
33 mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"