Date: Monday, January 18, 2021 @ 11:18:04 Author: kgizdov Revision: 822790
Initial release: ocaml-zarith Added: ocaml-zarith/ ocaml-zarith/repos/ ocaml-zarith/trunk/ ocaml-zarith/trunk/PKGBUILD ----------+ PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) Added: ocaml-zarith/trunk/PKGBUILD =================================================================== --- ocaml-zarith/trunk/PKGBUILD (rev 0) +++ ocaml-zarith/trunk/PKGBUILD 2021-01-18 11:18:04 UTC (rev 822790) @@ -0,0 +1,29 @@ +# Maintainer: Konstantin Gizdov <arch at kge dot pw> +# Contributor: Oliver Bandel <oli...@first.in-berlin.de> + +pkgname=ocaml-zarith +provides=('zarith') +pkgver=1.11 +pkgrel=1 +pkgdesc='Implements arithmetic and logical operations over arbitrary-precision integers and rational numbers' +url='https://github.com/ocaml/Zarith' +arch=('x86_64') +license=('GPL2') +depends=('gmp') +makedepends=('ocaml>=4.11.1' 'ocaml-findlib' ) +source=("https://github.com/ocaml/Zarith/archive/release-${pkgver}.tar.gz") +sha256sums=('f996af120a10fd06a8272ae99b7affd57cef49c57a3a596e2f589147dd183684') + +build() { + cd Zarith-release-${pkgver} + + ./configure -installdir "${pkgdir}/usr/lib/ocaml" # install ignores DESTDIR + make -j1 +} + +package() { + cd Zarith-release-${pkgver} + + mkdir -p "${pkgdir}/usr/lib/ocaml" + OCAMLFIND_LDCONF=ignore make install +}