Jakob Meier b15af5ecf0 testing/libantic: new aport
https://github.com/wbhart/antic
Algebraic Number Theory In C
2022-11-02 03:29:14 +01:00

41 lines
965 B
Plaintext

# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=libantic
pkgver=0.2.5
pkgrel=0
pkgdesc="Algebraic Number Theory In C"
url="https://github.com/wbhart/antic"
arch="all !s390x" # flint-dev
license="LGPL-2.1-or-later"
makedepends="
cmake
flint-dev
gmp-dev
mpfr-dev
samurai
"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/wbhart/antic/archive/v$pkgver/antic-$pkgver.tar.gz"
builddir="$srcdir/antic-$pkgver"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)"
cmake --build build
}
check() {
ctest -j4 --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
ffcb7f696abf3ae1b6960368bcbb508711cec00f42e8093782de337a8328f66f00f7f0cf2f6069a6b835a8a70282b50642b36a1acfa387b98ded36a85717eec6 libantic-0.2.5.tar.gz
"