mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 10:04:36 +02:00
48 lines
1,008 B
Text
48 lines
1,008 B
Text
# Contributor: Alex Yam <alex@alexyam.com>
|
|
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=flint
|
|
pkgver=3.2.2
|
|
pkgrel=0
|
|
pkgdesc="C library in support of computations in number theory"
|
|
url="https://flintlib.org/"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="
|
|
clang
|
|
gmp-dev
|
|
libntl-dev
|
|
m4
|
|
mpfr-dev
|
|
openblas-dev
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/flintlib/flint/releases/download/v$pkgver/flint-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
export CC=clang CXX=clang++
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=/usr/lib \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--with-ntl
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
e71470ef98fd6bb7ee8f3b9639d15d68fb907ae0249e353f26aec3c91cd89d5b94280fa4a4e13e7f56f3d6445876a1ca1f8eefd28c469acb496efbc425c8c798 flint-3.2.2.tar.gz
|
|
"
|