[arch-commits] Commit in primecount/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Sat Mar 21 19:12:49 UTC 2020
Date: Saturday, March 21, 2020 @ 19:12:48
Author: arojas
Revision: 603034
archrelease: copy trunk to community-staging-x86_64
Added:
primecount/repos/community-staging-x86_64/
primecount/repos/community-staging-x86_64/PKGBUILD
(from rev 603033, primecount/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: primecount/repos/community-staging-x86_64/PKGBUILD (from rev 603033, primecount/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-21 19:12:48 UTC (rev 603034)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=primecount
+pkgver=6.0
+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=('9f135e82c25e6ffa5223963dfc6978657966ac37c67d3ee6d10ab2362c889863')
+
+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=ON \
+ -DWITH_MPI=ON
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list