# Template build file for 'camlp4'
pkgname=camlp4
version=4.04+1
revision=1
build_style=configure
short_desc="Caml preprocessor and pretty-printer"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="https://github.com/ocaml/camlp4"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=6044f24a44053684d1260f19387e59359f59b0605cdbf7295e1de42783e48ff1
hostmakedepends="ocaml ocamlbuild"
wrksrc="camlp4-${version/+/-}"
nocross=yes
nopie=yes

do_build() {
	make all camlp4/META
}

do_install() {
	make \
		BINDIR="$DESTDIR/usr/bin" \
		LIBDIR="$DESTDIR/usr/lib/ocaml" \
		PKGDIR="$DESTDIR/usr/lib/ocaml" \
		install install-META
}
