2020-02-20 13:29:11 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - set -DWITH_FLOAT128=OFF
|
|
|
|
|
|
|
|
pkgname=primecount
|
2022-05-03 23:37:50 +00:00
|
|
|
pkgver=7.3
|
2022-07-05 20:19:29 +00:00
|
|
|
pkgrel=2
|
2021-08-14 14:11:13 +00:00
|
|
|
pkgdesc='Fast C++ prime counting function implementation'
|
2020-02-20 13:29:11 +00:00
|
|
|
arch=(x86_64)
|
2021-08-14 14:11:13 +00:00
|
|
|
url='https://github.com/kimwalisch/primecount'
|
2020-02-20 13:29:11 +00:00
|
|
|
license=(BSD)
|
2021-04-29 21:58:39 +00:00
|
|
|
depends=(primesieve)
|
2020-02-20 13:29:11 +00:00
|
|
|
makedepends=(cmake)
|
2021-04-29 21:58:39 +00:00
|
|
|
source=(https://github.com/kimwalisch/primecount/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
2022-05-03 23:37:50 +00:00
|
|
|
sha256sums=('471fe21461e42e5f28404e17ff840fb527b3ec4064853253ee22cf4a81656332')
|
2020-02-20 13:29:11 +00:00
|
|
|
|
|
|
|
build() {
|
2020-09-12 21:31:01 +00:00
|
|
|
cmake -B build -S $pkgname-$pkgver \
|
2020-02-20 13:29:11 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBUILD_LIBPRIMESIEVE=OFF \
|
|
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DWITH_POPCNT=OFF \
|
2021-04-29 21:58:39 +00:00
|
|
|
-DWITH_FLOAT128=OFF
|
2020-09-12 21:31:01 +00:00
|
|
|
cmake --build build
|
2020-02-20 13:29:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-09-12 21:31:01 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2020-02-20 13:29:11 +00:00
|
|
|
|
2020-09-12 21:31:01 +00:00
|
|
|
install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
2020-02-20 13:29:11 +00:00
|
|
|
}
|