archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ocaml-topkg / repos / extra-x86_64 / PKGBUILD
bloba01d9296071d893ac88d38d7afebd228a39dfc51
1 # Maintainer:  Jürgen Hötzel <juergen@archlinux.org>
2 pkgname=ocaml-topkg
3 pkgver=1.0.4
4 pkgrel=1
5 pkgdesc="A packager for distributing OCaml software"
6 arch=('x86_64')
7 url="https://erratique.ch/software/topkg"
8 license=('BSD')
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')
15 build() {
16   cd "${srcdir}/topkg-${pkgver}"
18   pkg/pkg.ml build --pkg-name topkg
21 package() {
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"