aports/testing/primesieve/APKBUILD
2025-03-22 14:40:10 +00:00

34 lines
892 B
Text

# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
pkgname=primesieve
pkgver=12.7
pkgrel=0
pkgdesc="Program and library for generating prime numbers"
url="http://primesieve.org"
arch="all"
license="BSD-2-Clause"
makedepends="cmake samurai"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/kimwalisch/primesieve/archive/v$pkgver.tar.gz"
build() {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_TESTS=ON
cmake --build build
}
check() {
cd build
ctest
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="
cba3b2588c1623c793dd8bb1985df60f9f41118a989715dfd9f81c00077ab92e4fcc51b23399643c50af576eb9f125e1e71918829d0f6ddc48401c050bb2c529 primesieve-12.7.tar.gz
"