mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
added community/primecount
This commit is contained in:
parent
1762f09198
commit
556b55d1bb
1 changed files with 40 additions and 0 deletions
40
community/primecount/PKGBUILD
Normal file
40
community/primecount/PKGBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - set -DWITH_FLOAT128=OFF
|
||||
|
||||
pkgname=primecount
|
||||
pkgver=5.3
|
||||
pkgrel=2
|
||||
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=('4de334432378d0a195883894faca3f2aeebd2b37ca6aa973ffbb33bd795c0f30')
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build
|
||||
cmake ../$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
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
Loading…
Reference in a new issue