mbedtls: update to 2.16.10

Also:
- Fix changelog location.
- Use scripts/config.pl instead of sed.

Closes: #29430 [via git-merge-pr]
This commit is contained in:
Evgeny Ermakov 2021-03-13 17:26:59 +11:00 committed by Érico Nogueira
parent 0ddf63d587
commit 48e89b8791

View file

@ -1,7 +1,7 @@
# Template file for 'mbedtls'
pkgname=mbedtls
reverts="2.17.0_1"
version=2.16.9
version=2.16.10
revision=1
wrksrc="mbedtls-mbedtls-${version}"
build_style=cmake
@ -11,15 +11,13 @@ 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/development/ChangeLog"
changelog="https://raw.githubusercontent.com/ARMmbed/mbedtls/mbedtls-${version%.*}/ChangeLog"
distfiles="https://github.com/ARMmbed/mbedtls/archive/mbedtls-${version}.tar.gz"
checksum=b7ca99ee10551b5b13242b7effebefd2a5cc38c287e5f5be1267d51ee45effe3
checksum=78c02e2d277a302454ada90274d16d80f88d761bdd4243528e4206cf7920be78
pre_configure() {
sed -i include/mbedtls/config.h \
-e 's/.*\(#define MBEDTLS_THREADING_C\)/\1/' \
-e 's/.*\(#define MBEDTLS_THREADING_PTHREAD\)/\1/'
./scripts/config.pl set MBEDTLS_THREADING_C
./scripts/config.pl set MBEDTLS_THREADING_PTHREAD
}
mbedtls-utils_package() {