extra/primecount to 7.13-1

This commit is contained in:
Kevin Mihelich 2024-04-18 23:07:54 +00:00
parent ee889e9151
commit 6f7be5e005
2 changed files with 11 additions and 10 deletions

View file

@ -1,15 +1,16 @@
pkgbase = primecount pkgbase = primecount
pkgdesc = Fast C++ prime counting function implementation pkgdesc = Fast C++ prime counting function implementation
pkgver = 7.12 pkgver = 7.13
pkgrel = 1 pkgrel = 1
url = https://github.com/kimwalisch/primecount url = https://github.com/kimwalisch/primecount
arch = x86_64 arch = x86_64
license = BSD-2-Clause license = BSD-2-Clause
makedepends = cmake makedepends = cmake
makedepends = git
depends = gcc-libs depends = gcc-libs
depends = glibc depends = glibc
depends = primesieve depends = primesieve
source = https://github.com/kimwalisch/primecount/archive/v7.12/primecount-7.12.tar.gz source = git+https://github.com/kimwalisch/primecount#tag=v7.13
sha256sums = b801aa95e434d1b7575e42cb9009286b5f94618a417888bb6bd3217ef2f1321c sha256sums = 1b6deb06588cd4b307ccd66b836e37242e45af8c727c9dca20a9eb582fb3a6e5
pkgname = primecount pkgname = primecount

View file

@ -4,7 +4,7 @@
# - set -DWITH_FLOAT128=OFF # - set -DWITH_FLOAT128=OFF
pkgname=primecount pkgname=primecount
pkgver=7.12 pkgver=7.13
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,17 +13,17 @@ license=(BSD-2-Clause)
depends=(gcc-libs depends=(gcc-libs
glibc glibc
primesieve) primesieve)
makedepends=(cmake) makedepends=(cmake
source=(https://github.com/kimwalisch/primecount/archive/v$pkgver/$pkgname-$pkgver.tar.gz) git)
sha256sums=('b801aa95e434d1b7575e42cb9009286b5f94618a417888bb6bd3217ef2f1321c') source=(git+https://github.com/kimwalisch/primecount#tag=v$pkgver)
sha256sums=('1b6deb06588cd4b307ccd66b836e37242e45af8c727c9dca20a9eb582fb3a6e5')
build() { build() {
cmake -B build -S $pkgname-$pkgver \ cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_LIBPRIMESIEVE=OFF \ -DBUILD_LIBPRIMESIEVE=OFF \
-DBUILD_STATIC_LIBS=OFF \ -DBUILD_STATIC_LIBS=OFF \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DWITH_POPCNT=OFF \
-DWITH_FLOAT128=OFF -DWITH_FLOAT128=OFF
cmake --build build cmake --build build
} }
@ -31,5 +31,5 @@ build() {
package() { package() {
DESTDIR="$pkgdir" cmake --install build DESTDIR="$pkgdir" cmake --install build
install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/ install -Dm644 $pkgname/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
} }