void-packages/srcpkgs/primecount/template
2025-04-06 19:27:48 +02:00

29 lines
926 B
Bash

# Template file for 'primecount'
pkgname=primecount
version=7.16
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=437cde8198fbfed3a16510786d99edb22da2766f0f0376450690d55a74ea5cf3
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"
}
}