void-packages/srcpkgs/ocaml/template
2014-10-16 15:16:46 +02:00

30 lines
740 B
Bash

# Template file for 'ocaml'
pkgname=ocaml
_majorver=4.02
version=${_majorver}.1
revision=1
makedepends="ncurses-devel libX11-devel"
short_desc="The main implementation of the Caml language"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://caml.inria.fr"
license="QPL-1,LGPL-2"
distfiles="${homepage}/pub/distrib/${pkgname}-${_majorver}/${pkgname}-${version}.tar.xz"
checksum=68c4b01be54c23bc20fc0a8beaa5c7433b8483f8950490129cfe7662e0c6f4dc
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
}