33 lines
950 B
Bash
33 lines
950 B
Bash
# Template file for 'primesieve'
|
|
pkgname=primesieve
|
|
version=11.0
|
|
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"
|
|
changelog="https://raw.githubusercontent.com/kimwalisch/primesieve/master/ChangeLog"
|
|
distfiles="https://github.com/kimwalisch/primesieve/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=b29a7ec855764ce7474d00be03e1d83209bd097faa3778382dfb73a06866097e
|
|
|
|
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"
|
|
}
|
|
}
|