PKGBUILDs/community/flint/PKGBUILD
2021-11-17 16:44:43 -05:00

30 lines
807 B
Bash

# 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
pkgver=2.8.4
pkgrel=1
pkgdesc='A C library for doing number theory'
arch=(x86_64)
url='http://www.flintlib.org'
license=(GPL)
depends=(mpfr ntl cblas)
makedepends=(cmake python)
source=(http://www.flintlib.org/flint-$pkgver.tar.gz)
sha256sums=('61df92ea8c8e9dc692d46c71d7f50aaa09a33d4ba08d02a1784730a445e5e4be')
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
}