void-packages/srcpkgs/ocaml-num/template
Sora Morimoto e8ae1eb1cc ocaml-num: fix xlint errors and license type
Signed-off-by: Sora Morimoto <sora@morimoto.io>
2020-11-23 01:57:19 -03:00

25 lines
710 B
Bash

# Template file for 'ocaml-num'
pkgname=ocaml-num
version=1.4
revision=1
wrksrc="num-${version}"
build_style=gnu-makefile
make_install_target="findlib-install"
makedepends="ocaml ocaml-findlib"
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=015088b68e717b04c07997920e33c53219711dfaf36d1196d02313f48ea00f24
nocross=yes
pre_install() {
export OCAMLFIND_DESTDIR=${DESTDIR}/usr/lib/ocaml
vmkdir /usr/lib/ocaml/stublibs
}
post_install() {
vlicense LICENSE
}