# Description: Objective CAML Compiler
# URL: http://caml.inria.fr/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: zstd

name=ocaml
version=5.3.0
release=1
source=(https://github.com/ocaml/ocaml/archive/refs/tags/$version/$name-$version.tar.gz)

build() {
	cd $name-$version

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man

	make world.opt
	make DESTDIR=$PKG install

	rm -r $PKG/usr/share/doc
}
