void-packages/srcpkgs/ocamlbuild/template

20 lines
549 B
Bash

# Template file for 'ocamlbuild'
pkgname=ocamlbuild
version=0.15.0
revision=1
build_style=gnu-makefile
hostmakedepends="ocaml"
short_desc="OCaml build tool"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.0-only"
homepage="https://github.com/ocaml/ocamlbuild"
distfiles="https://github.com/ocaml/${pkgname}/archive/${version}.tar.gz"
checksum=d3f6ee73100b575d4810247d10ed8f53fccef4e90daf0e4a4c5f3e6a3030a9c9
nocross=yes
export CHECK_IF_PREINSTALLED=false
pre_build() {
command -v ocamlc.opt >/dev/null || export OCAML_NATIVE=false
}