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
|
2022-06-24 17:21:02 +00:00
|
|
|
pkgver=2.9.0
|
2021-07-23 18:00:43 +00:00
|
|
|
pkgrel=1
|
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)
|
2020-12-21 03:25:18 +00:00
|
|
|
depends=(mpfr ntl cblas)
|
2020-06-05 23:49:21 +00:00
|
|
|
makedepends=(cmake python)
|
2021-06-21 12:35:47 +00:00
|
|
|
source=(http://www.flintlib.org/flint-$pkgver.tar.gz)
|
2022-06-24 17:21:02 +00:00
|
|
|
sha256sums=('2fc090d51033c93208e6c10d406397a53c983ae5343b958eb25f72a57a4ce76a')
|
2020-06-05 23:49:21 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DWITH_NTL=ON \
|
|
|
|
-DIPO_SUPPORTED=FALSE
|
|
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
}
|