mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
938 B
Bash
35 lines
938 B
Bash
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - set -DWITH_FLOAT128=OFF
|
|
|
|
pkgname=primecount
|
|
pkgver=7.10
|
|
pkgrel=1
|
|
pkgdesc='Fast C++ prime counting function implementation'
|
|
arch=(x86_64)
|
|
url='https://github.com/kimwalisch/primecount'
|
|
license=(BSD)
|
|
depends=(gcc-libs
|
|
glibc
|
|
primesieve)
|
|
makedepends=(cmake)
|
|
source=(https://github.com/kimwalisch/primecount/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
|
sha256sums=('0a0e9aaa25d8c24d06f0612fc01cd0c31f3eac4e096a9248fc041dd42dc60afb')
|
|
|
|
build() {
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_LIBPRIMESIEVE=OFF \
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DWITH_POPCNT=OFF \
|
|
-DWITH_FLOAT128=OFF
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|