void-packages/srcpkgs/mbedtls/template
2015-07-28 10:06:46 +02:00

26 lines
762 B
Bash

# Template file for 'mbedtls'
pkgname=mbedtls
version=2.0.0
revision=1
replaces="polarssl>=0 libpolarssl>=0"
short_desc="Portable cryptographic TLS library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
hostmakedepends="perl cmake"
license="GPL-2"
homepage="https://tls.mbed.org/"
distfiles="https://tls.mbed.org/download/mbedtls-${version}-gpl.tgz"
checksum=149a06621368540b7e1cef1b203c268439c2edbf29e2e9471d8021125df34952
build_style=cmake
configure_args=' -DENABLE_TESTING=Off -DUSE_SHARED_MBEDTLS_LIBRARY=On
-DLINK_WITH_PTHREAD=On'
mbedtls-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
replaces="polarssl-devel>=0"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}