vp-build/srcpkgs/camlp4/template

28 lines
653 B
Bash

# Template build file for 'camlp4'
pkgname=camlp4
version=4.06+1
revision=1
build_style=configure
short_desc="Caml preprocessor and pretty-printer"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="https://github.com/ocaml/camlp4"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=b1cc51449da0537f6886e380815b716e7adc9d9a12d6098a06db2b2525bab922
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
}