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

pkgname=ocaml-react
pkgver=1.2.2
pkgrel=4
pkgdesc='An OCaml module for functional reactive programming'
archs=('x86_64')
groups=('devel-extra')
depends=('ocaml>=5.3.0')
makedepends=('ocamlbuild' 'ocaml-topkg>=1.0.3' 'opam' 'ocaml-findlib')
_F_github_author="dbuenzli"
_F_github_name="react"
_F_github_tag_v=yes
Finclude github
source+=(version.patch)
sha1sums=('07a7378f16aefa98d6c9a5ca822f3fc485e5396b' \
          '92750ff718847b4a38faede5be86dc22b74049da')
_F_cd_path="react-$pkgver"

build() {
	Fcd
	Fpatchall

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

# optimization OK
