mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/primecount to 6.1-1
This commit is contained in:
parent
0f341aa024
commit
7cfcfcf228
1 changed files with 6 additions and 12 deletions
|
@ -4,7 +4,7 @@
|
|||
# - set -DWITH_FLOAT128=OFF
|
||||
|
||||
pkgname=primecount
|
||||
pkgver=6.0
|
||||
pkgver=6.1
|
||||
pkgrel=1
|
||||
pkgdesc="Fast C++ prime counting function implementation"
|
||||
arch=(x86_64)
|
||||
|
@ -13,15 +13,10 @@ license=(BSD)
|
|||
depends=(openmpi primesieve)
|
||||
makedepends=(cmake)
|
||||
source=($pkgname-$pkgver.tar.gz::"https://github.com/kimwalisch/primecount/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('9f135e82c25e6ffa5223963dfc6978657966ac37c67d3ee6d10ab2362c889863')
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
}
|
||||
sha256sums=('222bb0a17ad31f09296e2f3318a367230bcda2b82bec2613e339ba5c5e8558a0')
|
||||
|
||||
build() {
|
||||
cd build
|
||||
cmake ../$pkgname-$pkgver \
|
||||
cmake -B build -S $pkgname-$pkgver \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_LIBPRIMESIEVE=OFF \
|
||||
-DBUILD_STATIC_LIBS=OFF \
|
||||
|
@ -29,12 +24,11 @@ build() {
|
|||
-DWITH_POPCNT=OFF \
|
||||
-DWITH_FLOAT128=OFF \
|
||||
-DWITH_MPI=ON
|
||||
make
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$pkgdir" install
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue