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

View file

@ -4,7 +4,7 @@
# - set -DWITH_FLOAT128=OFF
pkgname=primecount
pkgver=7.12
pkgver=7.13
pkgrel=1
pkgdesc='Fast C++ prime counting function implementation'
arch=(x86_64)
@ -13,17 +13,17 @@ license=(BSD-2-Clause)
depends=(gcc-libs
glibc
primesieve)
makedepends=(cmake)
source=(https://github.com/kimwalisch/primecount/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('b801aa95e434d1b7575e42cb9009286b5f94618a417888bb6bd3217ef2f1321c')
makedepends=(cmake
git)
source=(git+https://github.com/kimwalisch/primecount#tag=v$pkgver)
sha256sums=('1b6deb06588cd4b307ccd66b836e37242e45af8c727c9dca20a9eb582fb3a6e5')
build() {
cmake -B build -S $pkgname-$pkgver \
cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_LIBPRIMESIEVE=OFF \
-DBUILD_STATIC_LIBS=OFF \
-DBUILD_SHARED_LIBS=ON \
-DWITH_POPCNT=OFF \
-DWITH_FLOAT128=OFF
cmake --build build
}
@ -31,5 +31,5 @@ build() {
package() {
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/
}