void-packages/srcpkgs/ocaml/template

27 lines
720 B
Bash

# Template file for 'ocaml'
pkgname=ocaml
version=4.02.2
revision=1
makedepends="ncurses-devel libX11-devel"
short_desc="The main implementation of the Caml language"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://caml.inria.fr"
license="QPL-1, LGPL-2"
distfiles="${homepage}/pub/distrib/${pkgname}-${version%.*}/${pkgname}-${version}.tar.xz"
checksum=60f923988ab7ae023a0799f9699d7d7a476bf8207ee2c900f92c8288ea363085
nocross=yes
do_configure() {
./configure -prefix /usr -mandir /usr/share/man
}
do_build() {
make ${makejobs} world.opt
}
do_install() {
local compiler_libs=${DESTDIR}/usr/lib/ocaml/compiler-libs
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man install
vlicense LICENSE
}