# Maintainer: Antonio Rojas # ALARM: Kevin Mihelich # - set -DWITH_FLOAT128=OFF pkgname=primecount pkgver=7.12 pkgrel=1 pkgdesc='Fast C++ prime counting function implementation' arch=(x86_64) url='https://github.com/kimwalisch/primecount' license=(BSD-2-Clause) depends=(gcc-libs glibc primesieve) makedepends=(cmake) source=(https://github.com/kimwalisch/primecount/archive/v$pkgver/$pkgname-$pkgver.tar.gz) sha256sums=('b801aa95e434d1b7575e42cb9009286b5f94618a417888bb6bd3217ef2f1321c') build() { cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_LIBPRIMESIEVE=OFF \ -DBUILD_STATIC_LIBS=OFF \ -DBUILD_SHARED_LIBS=ON \ -DWITH_POPCNT=OFF \ -DWITH_FLOAT128=OFF cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/ }