mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +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
|
# - set -DWITH_FLOAT128=OFF
|
||||||
|
|
||||||
pkgname=primecount
|
pkgname=primecount
|
||||||
pkgver=6.0
|
pkgver=6.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Fast C++ prime counting function implementation"
|
pkgdesc="Fast C++ prime counting function implementation"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
|
@ -13,15 +13,10 @@ license=(BSD)
|
||||||
depends=(openmpi primesieve)
|
depends=(openmpi primesieve)
|
||||||
makedepends=(cmake)
|
makedepends=(cmake)
|
||||||
source=($pkgname-$pkgver.tar.gz::"https://github.com/kimwalisch/primecount/archive/v$pkgver.tar.gz")
|
source=($pkgname-$pkgver.tar.gz::"https://github.com/kimwalisch/primecount/archive/v$pkgver.tar.gz")
|
||||||
sha256sums=('9f135e82c25e6ffa5223963dfc6978657966ac37c67d3ee6d10ab2362c889863')
|
sha256sums=('222bb0a17ad31f09296e2f3318a367230bcda2b82bec2613e339ba5c5e8558a0')
|
||||||
|
|
||||||
prepare() {
|
|
||||||
mkdir -p build
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd build
|
cmake -B build -S $pkgname-$pkgver \
|
||||||
cmake ../$pkgname-$pkgver \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DBUILD_LIBPRIMESIEVE=OFF \
|
-DBUILD_LIBPRIMESIEVE=OFF \
|
||||||
-DBUILD_STATIC_LIBS=OFF \
|
-DBUILD_STATIC_LIBS=OFF \
|
||||||
|
@ -29,12 +24,11 @@ build() {
|
||||||
-DWITH_POPCNT=OFF \
|
-DWITH_POPCNT=OFF \
|
||||||
-DWITH_FLOAT128=OFF \
|
-DWITH_FLOAT128=OFF \
|
||||||
-DWITH_MPI=ON
|
-DWITH_MPI=ON
|
||||||
make
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
make DESTDIR="$pkgdir" install
|
|
||||||
|
|
||||||
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