void-packages/srcpkgs/mbedtls/template
2018-03-25 20:36:15 +02:00

38 lines
1 KiB
Bash

# Template file for 'mbedtls'
pkgname=mbedtls
version=2.7.2
revision=1
wrksrc="mbedtls-mbedtls-${version}"
build_style=cmake
hostmakedepends="perl"
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=b24c86310233feec3354f18478889b8c0067c97c8767910682f65e840da38472
pre_configure() {
sed -i include/mbedtls/config.h \
-e 's/.*\(#define MBEDTLS_THREADING_C\)/\1/' \
-e 's/.*\(#define MBEDTLS_THREADING_PTHREAD\)/\1/'
}
mbedtls-utils_package() {
short_desc+=" - additional utilities"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove "usr/bin/*"
}
}
mbedtls-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}