void-packages/srcpkgs/camlp4/template
2017-10-13 13:55:41 +02:00

27 lines
653 B
Bash

# Template build file for 'camlp4'
pkgname=camlp4
version=4.05+2
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=db242c0f4896ddd9dc7d6e8064cba8bf099fb9a4d4f5ed35120978501cd3a935
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
}