From 837ff8034a2c8ef7851a3ff61522a12c8fba3ef8 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 5 Nov 2017 17:44:16 +0100 Subject: [PATCH] New package: ocaml-num-1.1 --- srcpkgs/ocaml-num/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/ocaml-num/template diff --git a/srcpkgs/ocaml-num/template b/srcpkgs/ocaml-num/template new file mode 100644 index 00000000000..249d17eb7f5 --- /dev/null +++ b/srcpkgs/ocaml-num/template @@ -0,0 +1,26 @@ +# Template file for 'ocaml-num' +pkgname=ocaml-num +version=1.1 +revision=1 +build_style=gnu-makefile +makedepends="ocaml ocaml-findlib" +short_desc="OCaml legacy Num library for arbitrary-precision integers" +maintainer="Leah Neukirchen " +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 +}