void-packages/srcpkgs/crypto++/template

37 lines
942 B
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_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
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
}
}