[arch-commits] Commit in (primesieve primesieve/trunk primesieve/trunk/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Thu Feb 20 09:48:53 UTC 2020


    Date: Thursday, February 20, 2020 @ 09:48:52
  Author: arojas
Revision: 577033

Unbundle primesieve from primecount

Added:
  primesieve/
  primesieve/trunk/
  primesieve/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Added: primesieve/trunk/PKGBUILD
===================================================================
--- primesieve/trunk/PKGBUILD	                        (rev 0)
+++ primesieve/trunk/PKGBUILD	2020-02-20 09:48:52 UTC (rev 577033)
@@ -0,0 +1,32 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=primesieve
+pkgver=7.5
+pkgrel=1
+pkgdesc="Fast prime number generator"
+arch=(x86_64)
+url="https://github.com/kimwalisch/primesieve"
+license=(BSD)
+depends=(gcc-libs)
+makedepends=(cmake)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/kimwalisch/primesieve/archive/v$pkgver.tar.gz")
+sha256sums=('fbc4070b2af4b87e2cff7ce3434f79af04d843594be43bba14293674475ec03c')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_STATIC_LIBS=OFF
+  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