36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Template file for 'primecount'
|
|
pkgname=primecount
|
|
version=7.9
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTS=ON -DBUILD_LIBPRIMESIEVE=OFF
|
|
-DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF"
|
|
makedepends="primesieve-devel libgomp-devel"
|
|
short_desc="Fast prime counting function"
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/kimwalisch/primecount/"
|
|
changelog="https://raw.githubusercontent.com/kimwalisch/primecount/master/ChangeLog"
|
|
distfiles="https://github.com/kimwalisch/primecount/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=872975ba2cbb43f5cc1ff5f5fda9ec4ec3f2be1eb3e3e906abe5d0b29a997f5b
|
|
|
|
build_options="native_build"
|
|
|
|
if [ -z "$build_option_native_build" ]; then
|
|
configure_args+=" -DWITH_POPCNT=OFF"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
primecount-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|