upgpkg: ocaml-integers 0.5.0-1
[arch-packages.git] / ocaml-result / trunk / PKGBUILD
blob9691b2e08ac52dc3524a5bcfbbab35b72b367ef0
1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
3 _pkgname=result
4 pkgname=ocaml-${_pkgname}
5 pkgver=1.5
6 pkgrel=5
7 pkgdesc="Compatibility Result module"
8 arch=('i686' 'x86_64' 'armv7h')
9 url="https://github.com/janestreet/result"
10 license=('BSD')
11 depends=('ocaml>=4.13.1')
12 makedepends=('ocaml-findlib' 'dune')
13 options=('!strip')
14 source=("https://github.com/janestreet/result/archive/${pkgver}.tar.gz")
15 sha512sums=('5ca3aab3b46bff7f4fa4517b5d823de196d7a97a8b94a8e416a5e237061482f4d0030c6a339291d5aa8f68020ee11aed743b730970105a2303e6a93d26ca676a')
17 build() {
18   cd "${srcdir}/${_pkgname}-${pkgver}"
19   dune build
23 package() {
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/"