2021-12-13 18:40:18 +00:00
|
|
|
# Template file for 'primesieve'
|
|
|
|
pkgname=primesieve
|
2022-01-30 14:16:48 +00:00
|
|
|
version=7.8
|
2021-12-13 18:40:18 +00:00
|
|
|
revision=1
|
|
|
|
build_style=cmake
|
|
|
|
configure_args="-DBUILD_TESTS=ON -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF"
|
|
|
|
short_desc="Fast prime number generator"
|
|
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
|
|
license="BSD-2-Clause"
|
|
|
|
homepage="https://github.com/kimwalisch/primesieve"
|
2022-01-30 14:16:48 +00:00
|
|
|
changelog="https://raw.githubusercontent.com/kimwalisch/primesieve/master/ChangeLog"
|
2021-12-13 18:40:18 +00:00
|
|
|
distfiles="https://github.com/kimwalisch/primesieve/archive/refs/tags/v${version}.tar.gz"
|
2022-01-30 14:16:48 +00:00
|
|
|
checksum=0cd0490259e6e919c6e3dd3f3e69ac6d91e6cbe616e22a219abe4006d9293d5d
|
2021-12-13 18:40:18 +00:00
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
|
|
makedepends+=" libatomic-devel"
|
|
|
|
fi
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense COPYING
|
|
|
|
}
|
|
|
|
|
|
|
|
primesieve-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/cmake
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|