void-packages/srcpkgs/ocaml/template

25 lines
669 B
Bash

# Template file for 'ocaml'
pkgname=ocaml
version=4.04.0
revision=1
makedepends="ncurses-devel libX11-devel"
short_desc="The main implementation of the Caml language"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
homepage="http://ocaml.org/"
license="QPL-1, LGPL-2"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
checksum=03e49d09d5a509216ca0cc8fccd10df3ad9dd441d7633e89974a74e149be3c51
nocross=yes
nopie=yes
do_configure() {
./configure -prefix /usr -mandir /usr/share/man
}
do_build() {
make ${makejobs} world.opt
}
do_install() {
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man install
vlicense LICENSE
}