void-packages/srcpkgs/camlp4/template

28 lines
667 B
Bash
Raw Normal View History

2015-08-26 18:11:48 +00:00
# Template build file for 'camlp4'
pkgname=camlp4
2016-04-29 16:29:24 +00:00
version=4.03+1
2016-06-21 19:19:59 +00:00
revision=2
2015-08-26 18:11:48 +00:00
build_style=configure
short_desc="Caml preprocessor and pretty-printer"
2016-04-29 16:29:24 +00:00
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
2015-08-26 18:11:48 +00:00
license="GPL-2"
homepage="https://github.com/ocaml/camlp4"
2016-06-21 19:19:59 +00:00
distfiles="${homepage}/archive/${version}.tar.gz"
2016-04-29 16:29:24 +00:00
checksum=6eefeacced81cca59ddf90c2538505fd5cd6596a3fc1acf4971e9796c2e7f2ae
hostmakedepends="ocaml ocamlbuild"
2015-08-26 18:11:48 +00:00
wrksrc="camlp4-${version/+/-}"
2016-06-21 19:19:59 +00:00
nocross=yes
nopie=yes
2015-08-26 18:11:48 +00:00
do_build() {
make all camlp4/META
}
do_install() {
make \
2016-04-29 16:29:24 +00:00
BINDIR="$DESTDIR/usr/bin" \
LIBDIR="$DESTDIR/usr/lib/ocaml" \
PKGDIR="$DESTDIR/usr/lib/ocaml" \
install install-META
2015-08-26 18:11:48 +00:00
}