void-packages/srcpkgs/polarssl/template

37 lines
931 B
Plaintext

# Template file for 'polarssl'
pkgname=polarssl
version=1.3.9
revision=2
build_style=cmake
configure_args="-DENABLE_ZLIB_SUPPORT=on -DUSE_SHARED_POLARSSL_LIBRARY=on"
hostmakedepends="cmake perl"
makedepends="zlib-devel libressl-devel"
short_desc="Portable cryptographic and SSL/TLS library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.polarssl.org"
update_pattern=$pkgname'-\K[\d.]+'
distfiles="http://www.polarssl.org/code/releases/polarssl-${version}-gpl.tgz"
checksum=d3605afc28ed4b7d1d9e3142d72e42855e4a23c07c951bbb0299556b02d36755
post_install() {
rm ${DESTDIR}/usr/bin/{md5,sha1}sum
}
libpolarssl_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
polarssl-devel_package() {
short_desc+=" - development files"
depends="libpolarssl>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}