blob: fb9c71351fbe1697a5d36ff14460b92d9013d284 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Konstantin Gizdov <arch at kge dot pw>
# Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
pkgname=ocaml4-num
pkgver=1.4
pkgrel=4
pkgdesc="Library for arbitrary-precision integer and rational arithmetic that used to be part of the OCaml core distribution"
arch=(x86_64)
url="https://github.com/ocaml/num"
license=(LGPL2.1)
depends=(ocaml4)
makedepends=(ocaml4-findlib)
conflicts=(ocaml-num)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ocaml/num/archive/v${pkgver}.tar.gz")
sha512sums=('0cc9be8ad95704bb683b4bf6698bada1ee9a40dc05924b72adc7b969685c33eeb68ccf174cc09f6a228c48c18fe94af06f28bebc086a24973a066da620db8e6f')
options=(!strip !makeflags)
build() {
cd "${srcdir}/num-${pkgver}"
make
}
package() {
cd "${srcdir}/num-${pkgver}"
local _destdir="${pkgdir}$(ocamlfind printconf destdir)"
install -d "${_destdir}/stublibs"
make OCAMLFIND_DESTDIR="${_destdir}" findlib-install
}
|