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

name=ocaml
version=5.1.1
release=1
source=(http://caml.inria.fr/pub/distrib/$name-${version%.*}/$name-$version.tar.xz)

build() {
	cd $name-$version

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

	make world.opt
	make DESTDIR=$PKG install

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