void-packages/srcpkgs/mbedtls/template
2016-12-15 12:12:41 +01:00

30 lines
871 B
Bash

# Template file for 'mbedtls'
pkgname=mbedtls
version=2.4.1
revision=1
wrksrc="mbedtls-mbedtls-${version}"
hostmakedepends="perl"
build_style=cmake
configure_args="-DENABLE_TESTING=0 -DUSE_SHARED_MBEDTLS_LIBRARY=1"
short_desc="Portable cryptographic TLS library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Apache-2.0"
homepage="https://tls.mbed.org/"
distfiles="https://github.com/ARMmbed/mbedtls/archive/mbedtls-${version}.tar.gz"
checksum=0c85fe59e1f0426b1c8f17efdc0c41bd531828b6cff746c392beb53c774af4cb
pre_configure() {
sed -i include/mbedtls/config.h \
-e 's/.*\(#define MBEDTLS_THREADING_C\)/\1/' \
-e 's/.*\(#define MBEDTLS_THREADING_PTHREAD\)/\1/'
}
mbedtls-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}