37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template build file for 'crypto++'.
|
|
pkgname=crypto++
|
|
version=565
|
|
revision=3
|
|
create_wrksrc=yes
|
|
build_style=gnu-makefile
|
|
make_build_target="libcryptopp.so libcryptopp.a"
|
|
hostmakedepends="unzip"
|
|
short_desc="A free C++ class library of cryptographic schemes"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.cryptopp.com/"
|
|
license="Boost Software License 1.0, Public domain"
|
|
distfiles="http://www.cryptopp.com/cryptopp${version}.zip"
|
|
checksum=a75ef486fe3128008bbb201efee3dcdcffbe791120952910883b26337ec32c34
|
|
|
|
CXXFLAGS="-DNDEBUG -fPIC"
|
|
|
|
post_extract() {
|
|
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
|
|
}
|
|
post_install() {
|
|
vinstall ${FILESDIR}/libcrypto++.pc 644 usr/lib/pkgconfig
|
|
sed -e "s,@@VERSION@@,${version},g" -i ${DESTDIR}/usr/lib/pkgconfig/libcrypto++.pc
|
|
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
|
|
}
|
|
}
|