void-packages/srcpkgs/ocaml-num/template
2018-07-17 14:48:38 +02:00

26 lines
711 B
Bash

# Template file for 'ocaml-num'
pkgname=ocaml-num
version=1.1
revision=3
build_style=gnu-makefile
makedepends="ocaml ocaml-findlib"
short_desc="OCaml legacy Num library for arbitrary-precision integers"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1"
homepage="https://github.com/ocaml/num"
distfiles="https://github.com/ocaml/num/archive/v${version}.tar.gz"
checksum=04ac85f6465b9b2bf99e814ddc798a25bcadb3cca2667b74c1af02b6356893f6
wrksrc="num-${version}"
nocross=yes
nopie=yes
post_extract() {
sed -i '/^ /s/\$(STDLIBDIR)/$(DESTDIR)\/&/' src/Makefile
}
pre_install() {
export OCAMLFIND_DESTDIR=${DESTDIR}/usr/lib/ocaml
vmkdir /usr/lib/ocaml/stublibs
}
post_install() {
vlicense LICENSE
}