diff --git a/srcpkgs/ocaml-num/template b/srcpkgs/ocaml-num/template index 72c9bace0d0..f2e6c90c3d6 100644 --- a/srcpkgs/ocaml-num/template +++ b/srcpkgs/ocaml-num/template @@ -1,23 +1,21 @@ # Template file for 'ocaml-num' pkgname=ocaml-num -version=1.4 -revision=4 -build_style=gnu-makefile -make_install_target="findlib-install" -makedepends="ocaml ocaml-findlib" +version=1.5 +revision=1 +makedepends="ocaml dune" short_desc="OCaml legacy Num library for arbitrary-precision integers" maintainer="Leah Neukirchen " 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 +checksum=7ae07c8f5601e2dfc5008a62dcaf2719912ae596a19365c5d7bdf2230515959a nocross=yes -pre_install() { - export OCAMLFIND_DESTDIR=${DESTDIR}/usr/lib/ocaml - vmkdir /usr/lib/ocaml/stublibs +do_build() { + dune build --display=short } - -post_install() { +do_install() { + dune install --prefix=/usr --destdir="$DESTDIR" \ + --libdir=/usr/lib/ocaml --docdir=/usr/share/doc vlicense LICENSE }