PKGBUILDs/community/primecount/PKGBUILD
2020-09-12 21:31:01 +00:00

34 lines
942 B
Bash

# Maintainer: Antonio Rojas <arojas@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - set -DWITH_FLOAT128=OFF
pkgname=primecount
pkgver=6.1
pkgrel=1
pkgdesc="Fast C++ prime counting function implementation"
arch=(x86_64)
url="https://github.com/kimwalisch/primecount"
license=(BSD)
depends=(openmpi primesieve)
makedepends=(cmake)
source=($pkgname-$pkgver.tar.gz::"https://github.com/kimwalisch/primecount/archive/v$pkgver.tar.gz")
sha256sums=('222bb0a17ad31f09296e2f3318a367230bcda2b82bec2613e339ba5c5e8558a0')
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 \
-DWITH_MPI=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
}