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
|
2020-08-27 20:14:12 +00:00
|
|
|
pkgver=2.6.3
|
2020-06-05 23:49:21 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A C library for doing number theory"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="http://www.flintlib.org"
|
|
|
|
license=(GPL)
|
|
|
|
depends=(mpfr ntl)
|
|
|
|
makedepends=(cmake python)
|
|
|
|
source=("http://www.flintlib.org/flint-$pkgver.tar.gz")
|
2020-08-27 20:14:12 +00:00
|
|
|
sha256sums=('ce1a750a01fa53715cad934856d4b2ed76f1d1520bac0527ace7d5b53e342ee3')
|
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
|
|
|
|
}
|