mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
30 lines
803 B
Bash
30 lines
803 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=2.6.2
|
|
pkgrel=1
|
|
pkgdesc="A C library for doing number theory"
|
|
arch=(x86_64)
|
|
url="http://www.flintlib.org"
|
|
license=(GPL)
|
|
depends=(mpfr ntl)
|
|
makedepends=(cmake python)
|
|
source=("http://www.flintlib.org/flint-$pkgver.tar.gz")
|
|
sha256sums=('5f9b45113c3b50c10564a04e9dd929eb8ad96488b5eb901db5723cd21bbae1da')
|
|
|
|
build() {
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DWITH_NTL=ON \
|
|
-DIPO_SUPPORTED=FALSE
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|