2020-02-20 13:29:11 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - set -DWITH_FLOAT128=OFF
|
|
|
|
|
|
|
|
pkgname=primecount
|
2021-03-20 19:03:11 +00:00
|
|
|
pkgver=6.4
|
2020-03-21 20:47:45 +00:00
|
|
|
pkgrel=1
|
2020-02-20 13:29:11 +00:00
|
|
|
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")
|
2021-03-20 19:03:11 +00:00
|
|
|
sha256sums=('3c7ede9344b908a2be139b8d015cd5f36adfa69a9069199af556f6a32d3a7958')
|
2020-02-20 13:29:11 +00:00
|
|
|
|
|
|
|
build() {
|
2020-09-12 21:31:01 +00:00
|
|
|
cmake -B build -S $pkgname-$pkgver \
|
2020-02-20 13:29:11 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBUILD_LIBPRIMESIEVE=OFF \
|
|
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DWITH_POPCNT=OFF \
|
|
|
|
-DWITH_FLOAT128=OFF \
|
|
|
|
-DWITH_MPI=ON
|
2020-09-12 21:31:01 +00:00
|
|
|
cmake --build build
|
2020-02-20 13:29:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-09-12 21:31:01 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2020-02-20 13:29:11 +00:00
|
|
|
|
2020-09-12 21:31:01 +00:00
|
|
|
install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
2020-02-20 13:29:11 +00:00
|
|
|
}
|