db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / ocaml-bigarray-compat / trunk / PKGBUILD
blobc28e344efd262a2dab2f5f87015a5952b6a6e179
1 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
2 _pkgname='bigarray-compat'
3 pkgname="ocaml-${_pkgname}"
4 pkgver=1.0.0
5 pkgrel=3
6 pkgdesc="Compatibility library to use Stdlib.Bigarray when possible"
7 arch=(x86_64)
8 url="https://github.com/mirage/bigarray-compat"
9 license=('Apache')
10 depends=("ocaml>=4.14.0")
11 makedepends=("ocaml-compiler-libs" "dune")
12 source=("https://github.com/mirage/${pkgname#ocaml-}/archive/refs/tags/v${pkgver}.tar.gz")
13 sha512sums=('c365fee15582aca35d7b05268cde29e54774ad7df7be56762b4aad78ca1409d4326ad3b34af0f1cc2c7b872837290a9cd9ff43b47987c03bba7bba32fe8a030f')
15 build() {
16     cd "${srcdir}/${_pkgname}-${pkgver}"
17     dune build -p $_pkgname
20 package() {
21     cd "${srcdir}/${_pkgname}-${pkgver}"
22     DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir "/usr/lib/ocaml"
24     install -dm755 "${pkgdir}/usr/share/"
25     mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"