void-packages/srcpkgs/ocaml-num/template

22 lines
654 B
Bash

# Template file for 'ocaml-num'
pkgname=ocaml-num
version=1.5
revision=2
makedepends="ocaml dune"
short_desc="OCaml legacy Num library for arbitrary-precision integers"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="custom: LGPL-2.1-only with OCaml-LGPL-linking-exception"
homepage="https://github.com/ocaml/num"
distfiles="https://github.com/ocaml/num/archive/v${version}.tar.gz"
checksum=7ae07c8f5601e2dfc5008a62dcaf2719912ae596a19365c5d7bdf2230515959a
nocross=yes
do_build() {
dune build --display=short
}
do_install() {
dune install --prefix=/usr --destdir="$DESTDIR" \
--libdir=/usr/lib/ocaml --docdir=/usr/share/doc
vlicense LICENSE
}