2020-06-05 23:49:21 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>
|
|
|
|
# Contributor: Alessandro "jakedust" Andrioni <jakedust@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable LTO via -DIPO_SUPPORTED=FALSE
|
|
|
|
|
|
|
|
pkgname=flint
|
2023-10-22 15:25:23 +00:00
|
|
|
pkgver=3.0.0
|
|
|
|
pkgrel=3
|
2021-06-21 12:35:47 +00:00
|
|
|
pkgdesc='A C library for doing number theory'
|
2020-06-05 23:49:21 +00:00
|
|
|
arch=(x86_64)
|
2021-06-21 12:35:47 +00:00
|
|
|
url='http://www.flintlib.org'
|
2020-06-05 23:49:21 +00:00
|
|
|
license=(GPL)
|
2023-10-22 15:25:23 +00:00
|
|
|
depends=(cblas
|
|
|
|
glibc
|
|
|
|
gmp
|
|
|
|
mpfr)
|
|
|
|
makedepends=(cmake
|
|
|
|
python)
|
|
|
|
replaces=(antic
|
|
|
|
arb)
|
2021-06-21 12:35:47 +00:00
|
|
|
source=(http://www.flintlib.org/flint-$pkgver.tar.gz)
|
2023-10-22 15:25:23 +00:00
|
|
|
sha256sums=('b9086e31e3dab89896d7edbf05a5b758d5b4b72183a1a3478f23eabdcaaae044')
|
2020-06-05 23:49:21 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2023-10-22 15:25:23 +00:00
|
|
|
-DFLINT_MAJOR=3 -DFLINT_MINOR=0 -DFLINT_PATCH=0 \
|
2020-06-05 23:49:21 +00:00
|
|
|
-DIPO_SUPPORTED=FALSE
|
|
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
}
|