aports/testing/flint/APKBUILD
Leo 2d4924a770 testing/flint: add missing -dev subpackage, disable on mips64
```
error: conflicting types for 'mp_limb_t'
```
2021-02-10 10:51:47 -03:00

39 lines
871 B
Plaintext
Executable File

# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=flint
pkgver=2.7.1
pkgrel=1
pkgdesc="C library in support of computations in number theory"
url="https://www.flintlib.org/"
arch="all !mips !mips64"
license="LGPL-2.1-or-later"
makedepends="
cmake
gmp-dev
mpfr-dev
blas-dev
python3
"
subpackages="$pkgname-dev"
source="https://www.flintlib.org/flint-$pkgver.tar.gz"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_TESTING=ON
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a flint-2.7.1.tar.gz"