# Maintainer (AUR): Yen Chi Hsuan < yan12125 at gmail dot com > # Contributor (AUR): lesebas < sebdeligny at gmail dot com> # Maintainer (Parabola) : Aurélien DESBRIÈRES pkgname=ocaml-extlib pkgver=1.7.5 pkgrel=1 pkgdesc="Extends the OCaml standard library" arch=('i686' 'x86_64' 'armv7h') url="https://github.com/ygrek/ocaml-extlib" license=('LGPL') depends=('ocaml') makedepends=('ocaml-findlib' 'cppo') source=("$pkgname-$pkgver.tar.gz"::"https://github.com/ygrek/ocaml-extlib/archive/${pkgver}.tar.gz") options=('staticlibs') sha256sums=('28e36367a65b1a5886d09f6d535e73b4aa88076778594c62df653a2b1536e62d') build() { cd ocaml-extlib-${pkgver} make build make doc } package () { _DOCDIR="${pkgdir}/usr/share/doc/ocaml-extlib" cd ocaml-extlib-${pkgver} export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" install -Ddm755 "${OCAMLFIND_DESTDIR}" make install # Install doc install -Ddm755 "$_DOCDIR" cp -dr --no-preserve=ownership src/doc/* "$_DOCDIR/" }