void-packages/srcpkgs/crypto++/template
Jürgen Buchmüller 1712ff8d84 crypto++: update to 8.3.0
Upstream switched version numbering to major, minor, patchlevel and
decided to delimit them by underscores.
2020-12-26 00:23:38 +01:00

43 lines
1.1 KiB
Bash

# Template file for 'crypto++'
pkgname=crypto++
reverts="820_2"
version=8.3.0
revision=1
wrksrc="${pkgname//+/p}-CRYPTOPP_${version//./_}"
build_style=gnu-makefile
make_build_args="PREFIX=/usr"
make_build_target="dynamic static libcryptopp.pc"
make_install_target="install-lib"
short_desc="Free C++ class library of cryptographic schemes"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSL-1.0"
homepage="http://www.cryptopp.com/"
distfiles="https://github.com/weidai11/cryptopp/archive/CRYPTOPP_${version//./_}.tar.gz"
checksum=63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43
CXXFLAGS="-DNDEBUG -fPIC"
if [ "$XBPS_CROSS" ]; then
make_build_args+=" -f GNUmakefile-cross"
fi
do_check() {
# The gnu-makefile build style does not use ${makejobs}
make ${makejobs} ${make_build_args} check
}
post_install() {
vlicense License.txt LICENSE
}
crypto++-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}