blob: b59f82c1d8852fd4afdb5ad29a480cb5a3faf7a9 (
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
31
32
33
34
|
# Maintainer: korimitsu <korimitsu_aur.wackiness926@passinbox.com>
# Based on PKGBUILD by:
# 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-noframepointers
pkgver=1.4
pkgrel=4
# Not enabling '--enable-frame-pointers' in the ocaml4 configure is required for aarch64 compilation, not for x86_64. This is why all the '-noframepointers' packages exist.
pkgdesc="Library for arbitrary-precision integer and rational arithmetic that used to be part of the OCaml core distribution. Patched for x86_64/aarch64 and no ocaml4 frame-pointers."
arch=(x86_64 aarch64)
url="https://github.com/ocaml/num"
license=(LGPL-2.1-only)
depends=(ocaml4-noframepointers)
makedepends=(ocaml4-findlib-noframepointers)
provides=("ocaml4-num=${pkgver}")
conflicts=("ocaml4-num" "ocaml-num")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ocaml/num/archive/v${pkgver}.tar.gz")
sha512sums=('0cc9be8ad95704bb683b4bf6698bada1ee9a40dc05924b72adc7b969685c33eeb68ccf174cc09f6a228c48c18fe94af06f28bebc086a24973a066da620db8e6f')
options=(!strip !makeflags !lto)
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
}
|