void-packages/srcpkgs/ocaml/template

26 lines
705 B
Bash

# Template file for 'ocaml'
pkgname=ocaml
version=4.07.1
revision=1
makedepends="ncurses-devel libX11-devel"
short_desc="The main implementation of the Caml language"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="QPL-1.0, LGPL-2.1-only"
homepage="http://ocaml.org/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
checksum=83683ddad54bd23773591a9f757e702fa5cfa2ea1b124d8fe75a73729e592bfe
nocross=yes
disable_parallel_build=yes
patch_args="-Np1"
do_configure() {
./configure -prefix /usr -mandir /usr/share/man -fPIC
}
do_build() {
make ${makejobs} world.opt
}
do_install() {
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man install
vlicense LICENSE
}