PKGBUILDs/community/flint/PKGBUILD

31 lines
809 B
Bash
Raw Normal View History

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
2021-01-18 16:22:50 +00:00
pkgver=2.7.1
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)
2020-12-21 03:25:18 +00:00
depends=(mpfr ntl cblas)
2020-06-05 23:49:21 +00:00
makedepends=(cmake python)
source=("http://www.flintlib.org/flint-$pkgver.tar.gz")
2021-01-18 16:22:50 +00:00
sha256sums=('186e2fd9ab67df8a05b122fb018269b382e4babcdb17353c4be1fe364dca481e')
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
}