Skip to content
Snippets Groups Projects
Commit b15af5ec authored by Jakob Meier's avatar Jakob Meier :gay_pride_flag: Committed by alice
Browse files

testing/libantic: new aport

https://github.com/wbhart/antic
Algebraic Number Theory In C
parent b0ecef47
No related branches found
No related tags found
1 merge request!40946testing/antic: new aport
Pipeline #142410 passed
# 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
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment