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