void-packages/srcpkgs/mbedtls/template

40 lines
1.1 KiB
Bash

# Template file for 'mbedtls'
pkgname=mbedtls
reverts="2.17.0_1"
version=2.16.12
revision=1
build_style=cmake
configure_args="-DENABLE_TESTING=1 -DUSE_SHARED_MBEDTLS_LIBRARY=1"
hostmakedepends="python3 perl"
short_desc="Portable cryptographic TLS library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://tls.mbed.org/"
changelog="https://raw.githubusercontent.com/ARMmbed/mbedtls/mbedtls-${version%.*}/ChangeLog"
distfiles="https://github.com/ARMmbed/mbedtls/archive/refs/tags/v${version}.tar.gz"
checksum=294871ab1864a65d0b74325e9219d5bcd6e91c34a3c59270c357bb9ae4d5c393
pre_configure() {
./scripts/config.pl set MBEDTLS_THREADING_C
./scripts/config.pl set MBEDTLS_THREADING_PTHREAD
}
mbedtls-utils_package() {
short_desc+=" - additional utilities"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/bin
rm "${PKGDESTDIR}"/usr/bin/query_compile_time_config
}
}
mbedtls-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}