1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
5 pkgdesc="A packager for distributing OCaml software"
7 url="https://erratique.ch/software/topkg"
9 depends=('ocaml>=4.13.1' 'ocaml-result')
10 makedepends=('ocaml-findlib' 'ocamlbuild' 'opam' 'ocaml-compiler-libs')
11 source=("https://erratique.ch/software/topkg/releases/topkg-${pkgver}.tbz")
12 sha512sums=('5baa1bf0105397589b741acd0195069823548b2051e453dffd641e5d00536b7a5f41b38d005b2b063f9e7cfb9a3b627bec3e6ad48e56769cc35a71f97a897f1b')
16 cd "${srcdir}/topkg-${pkgver}"
18 pkg/pkg.ml build --pkg-name topkg
22 cd "${srcdir}/topkg-${pkgver}"
24 opam-installer --prefix="${pkgdir}/usr" \
25 --libdir="${pkgdir}$(ocamlc -where)" \
26 --docdir="${pkgdir}/usr/share/doc"
27 install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
28 mv "${pkgdir}/usr/share/doc/topkg/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"