1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
6 pkgdesc='Fast C++ prime counting function implementation'
8 url='https://github.com/kimwalisch/primecount'
12 source=(https://github.com/kimwalisch/primecount/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha256sums=('7588b241cd268f4cc6c836135088a143ca65c181278ee0ba3b3309ac055d5ae8')
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 \
27 DESTDIR="$pkgdir" cmake --install build
29 install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/