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.14.0' 'ocaml-result')
10 makedepends=('ocaml-findlib' 'ocamlbuild' 'opam' 'ocaml-compiler-libs')
11 source=("https://erratique.ch/software/topkg/releases/topkg-${pkgver}.tbz")
12 sha512sums=('9450e9139209aacd8ddb4ba18e4225770837e526a52a56d94fd5c9c4c9941e83e0e7102e2292b440104f4c338fabab47cdd6bb51d69b41cc92cc7a551e6fefab')
15 cd "${srcdir}/topkg-${pkgver}"
17 pkg/pkg.ml build --pkg-name topkg
21 cd "${srcdir}/topkg-${pkgver}"
23 opam-installer --prefix="${pkgdir}/usr" \
24 --libdir="${pkgdir}$(ocamlc -where)" \
25 --docdir="${pkgdir}/usr/share/doc"
26 install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
27 mv "${pkgdir}/usr/share/doc/topkg/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"