diff --git a/srcpkgs/camlp4/template b/srcpkgs/camlp4/template new file mode 100644 index 00000000000..f4093b3e11b --- /dev/null +++ b/srcpkgs/camlp4/template @@ -0,0 +1,26 @@ +# Template build file for 'camlp4' +pkgname=camlp4 +version=4.02+6 +revision=1 +build_style=configure +short_desc="Caml preprocessor and pretty-printer" +maintainer="John Regan " +license="GPL-2" +homepage="https://github.com/ocaml/camlp4" +distfiles="$homepage/archive/${version}.tar.gz" +checksum="820c35b69fdff3225bda6045fabffe5d7c54dda00fb157444ac8bda5e1778d45" +makedepends="ocaml" +wrksrc="camlp4-${version/+/-}" +nocross="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 +}