db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / ocaml-topkg / trunk / PKGBUILD
blob940b10f8f0401ca7b61efb55ea3b03b92a5fd0c9
1 # Maintainer:  Jürgen Hötzel <juergen@archlinux.org>
2 pkgname=ocaml-topkg
3 pkgver=1.0.5
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.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')
14 build() {
15   cd "${srcdir}/topkg-${pkgver}"
17   pkg/pkg.ml build --pkg-name topkg
20 package() {
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"