mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
36 lines
952 B
Bash
36 lines
952 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=3.1.1
|
|
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=('f9bb3e68545b5e8ec5a1b9de128c6b11cbb41160e618ad7bf21057d5f2ea5fd2')
|
|
|
|
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
|
|
}
|