# Maintainer: Antonio Rojas # Contributor: Rémy Oudompheng # Contributor: Alessandro "jakedust" Andrioni # ALARM: Kevin Mihelich # - disable LTO via -DIPO_SUPPORTED=FALSE pkgname=flint pkgver=3.1.2 pkgrel=1 pkgdesc='A C library for doing number theory' arch=(x86_64) url='http://www.flintlib.org' license=(LGPL-3.0-only) depends=(cblas glibc gmp mpfr) makedepends=(cmake python) replaces=(antic arb) source=(https://github.com/flintlib/flint/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz) sha256sums=('57bd9ef6b8376e31d0bca806f1faec01969e3d54fdcb274733ba015aa2b4e061') build() { cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DHAS_FLAG_GCC_MARCH_NATIVE=OFF \ -DIPO_SUPPORTED=FALSE cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }