# Compiling Time: 0.06 SBU
# Maintainer: DeX77 <dex77@frugalware.org>

pkgname=ocaml-logs
pkgver=0.7.0
pkgrel=1
pkgdesc='Logging infrastructure for OCaml'
archs=('x86_64')
groups=('devel-extra')
url="https://erratique.ch/software/logs"
options=('nostrip')
depends=('ocaml-fmt' 'lwt')
makedepends=('ocaml-topkg' 'ocamlbuild' 'opam' 'ocaml-findlib')
_F_archive_name=logs
up2date="Flastarchive $url/releases .tbz"
source=("$url/releases/logs-$pkgver.tbz")
sha1sums=('b02f9ecbbf68a632205b5db2f7a05ff7b2805667')

build() {
        Fcd
        Fpatchall

        Fexec ocaml 'pkg/pkg.ml' build --with-js_of_ocaml false || Fdie
        Fexec opam-installer --prefix="$Fdestdir/usr" --libdir='lib/ocaml' --docdir='share/doc' || Fdie
}


# optimization OK
