upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / primecount / trunk / PKGBUILD
blobeb8077e4ecf125e36b02a67fec71832e08f453ad
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=primecount
4 pkgver=7.8
5 pkgrel=1
6 pkgdesc='Fast C++ prime counting function implementation'
7 arch=(x86_64)
8 url='https://github.com/kimwalisch/primecount'
9 license=(BSD)
10 depends=(primesieve)
11 makedepends=(cmake)
12 source=(https://github.com/kimwalisch/primecount/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha256sums=('7588b241cd268f4cc6c836135088a143ca65c181278ee0ba3b3309ac055d5ae8')
15 build() {
16   cmake -B build -S $pkgname-$pkgver \
17     -DCMAKE_INSTALL_PREFIX=/usr \
18     -DBUILD_LIBPRIMESIEVE=OFF \
19     -DBUILD_STATIC_LIBS=OFF \
20     -DBUILD_SHARED_LIBS=ON \
21     -DWITH_POPCNT=OFF \
22     -DWITH_FLOAT128=ON
23   cmake --build build
26 package() {
27   DESTDIR="$pkgdir" cmake --install build
29   install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/