PKGBUILDs/extra/flint/PKGBUILD

45 lines
1.1 KiB
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-04-26 12:31:07 +00:00
pkgver=3.1.3
2024-06-23 13:50:47 +00:00
pkgrel=2
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
2024-04-26 12:31:07 +00:00
git
2023-10-22 15:25:23 +00:00
python)
replaces=(antic
arb)
2024-06-23 13:50:47 +00:00
source=(git+https://github.com/flintlib/flint#tag=v$pkgver
https://github.com/flintlib/flint/commit/1b93e73d.patch)
sha256sums=('085708b2cc50a98fd0e25d910eba66dfbc257acf37ce188b473ef9f741a3c322'
'd95327465594a0d52fa583347c64f8e79854fbee7a64527becbc15659af646ec')
prepare() {
cd $pkgname
patch -p1 -i ../1b93e73d.patch # Fix conflicts with complex.h
}
2020-06-05 23:49:21 +00:00
build() {
2024-04-26 12:31:07 +00:00
cmake -B build -S $pkgname \
2020-06-05 23:49:21 +00:00
-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
}