# Template file for 'ocamlbuild'
pkgname=ocamlbuild
version=0.16.1
revision=1
build_style=gnu-makefile
hostmakedepends="ocaml"
short_desc="OCaml build tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.0-only"
homepage="https://github.com/ocaml/ocamlbuild"
distfiles="https://github.com/ocaml/${pkgname}/archive/${version}.tar.gz"
checksum=2ba6857f2991b7f69368e8db818b163d31cf5a367f15f5953bf8f01a77b3d4fc
nocross=yes

export CHECK_IF_PREINSTALLED=false

pre_build() {
	command -v ocamlc.opt >/dev/null || export OCAML_NATIVE=false
}
