PKGBUILDs/extra/flint/PKGBUILD

37 lines
952 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
2024-03-18 17:51:32 +00:00
pkgver=3.1.2
2024-03-08 00:55:52 +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'
2024-02-25 23:47:16 +00:00
license=(LGPL-3.0-only)
2023-10-22 15:25:23 +00:00
depends=(cblas
glibc
gmp
mpfr)
makedepends=(cmake
python)
replaces=(antic
arb)
2024-03-08 00:55:52 +00:00
source=(https://github.com/flintlib/flint/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz)
2024-03-18 17:51:32 +00:00
sha256sums=('57bd9ef6b8376e31d0bca806f1faec01969e3d54fdcb274733ba015aa2b4e061')
2020-06-05 23:49:21 +00:00
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
2024-02-26 12:49:19 +00:00
-DHAS_FLAG_GCC_MARCH_NATIVE=OFF \
2020-06-05 23:49:21 +00:00
-DIPO_SUPPORTED=FALSE
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}