# Description: Cryptographic library for embedded systems # URL: https://www.trustedfirmware.org/projects/mbed-tls/ # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: python3-jsonschema python3-jinja2 name=mbedtls version=3.6.2 release=1 _framework=94599c0e3b5036e086446a51a3f79640f70f22f6 source=(https://github.com/ARMmbed/mbedtls/archive/$name-$version.tar.gz https://github.com/Mbed-TLS/mbedtls-framework/archive/$_framework/mbedtls-framework-$_framework.tar.gz) build() { rm -rf $name-$name-$version/framework mv mbedtls-framework-$_framework $name-$name-$version/framework cmake -S $name-$name-$version -B build -G Ninja \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_LIBDIR=lib \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ -D USE_SHARED_MBEDTLS_LIBRARY=ON \ -D USE_STATIC_MBEDTLS_LIBRARY=ON \ -D INSTALL_MBEDTLS_HEADERS=ON \ -D MBEDTLS_FATAL_WARNINGS=OFF \ -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build }