mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
864 B
Bash
35 lines
864 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.0.1
|
|
pkgrel=1
|
|
pkgdesc='A C library for doing number theory'
|
|
arch=(x86_64)
|
|
url='http://www.flintlib.org'
|
|
license=(GPL)
|
|
depends=(cblas
|
|
glibc
|
|
gmp
|
|
mpfr)
|
|
makedepends=(cmake
|
|
python)
|
|
replaces=(antic
|
|
arb)
|
|
source=(http://www.flintlib.org/flint-$pkgver.tar.gz)
|
|
sha256sums=('7b311a00503a863881eb8177dbeb84322f29399f3d7d72f3b1a4c9ba1d5794b4')
|
|
|
|
build() {
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DIPO_SUPPORTED=FALSE
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|