aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/crypto++/template
blob: b524377319ea1491c4ebd68e7e7e9df6d4d63dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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
	}
}