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
|
2024-04-18 23:07:54 +00:00
|
|
|
pkgver=7.13
|
2024-03-12 16:20:07 +00:00
|
|
|
pkgrel=1
|
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'
|
2024-02-19 22:59:45 +00:00
|
|
|
license=(BSD-2-Clause)
|
2024-01-12 00:43:59 +00:00
|
|
|
depends=(gcc-libs
|
|
|
|
glibc
|
|
|
|
primesieve)
|
2024-04-18 23:07:54 +00:00
|
|
|
makedepends=(cmake
|
|
|
|
git)
|
|
|
|
source=(git+https://github.com/kimwalisch/primecount#tag=v$pkgver)
|
|
|
|
sha256sums=('1b6deb06588cd4b307ccd66b836e37242e45af8c727c9dca20a9eb582fb3a6e5')
|
2020-02-20 13:29:11 +00:00
|
|
|
|
|
|
|
build() {
|
2024-04-18 23:07:54 +00:00
|
|
|
cmake -B build -S $pkgname \
|
2020-02-20 13:29:11 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBUILD_LIBPRIMESIEVE=OFF \
|
|
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
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
|
|
|
|
2024-04-18 23:07:54 +00:00
|
|
|
install -Dm644 $pkgname/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
2020-02-20 13:29:11 +00:00
|
|
|
}
|