2020-06-06 14:55:12 +02:00
|
|
|
# Description: Cryptographic library for embedded systems
|
2023-09-15 18:29:13 +02:00
|
|
|
# URL: https://www.trustedfirmware.org/projects/mbed-tls/
|
2023-08-10 17:21:08 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-12-17 13:48:12 +01:00
|
|
|
# Depends on: python3-jsonschema python3-jinja2
|
2020-03-18 13:23:54 +01:00
|
|
|
|
|
|
|
name=mbedtls
|
2023-11-09 19:16:40 +01:00
|
|
|
version=3.5.1
|
2022-12-17 13:48:12 +01:00
|
|
|
release=1
|
2020-06-06 14:55:12 +02:00
|
|
|
source=(https://github.com/ARMmbed/mbedtls/archive/$name-$version.tar.gz)
|
2020-03-18 13:23:54 +01:00
|
|
|
|
|
|
|
build() {
|
2023-08-10 17:21:08 +02:00
|
|
|
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 ENABLE_ZLIB_SUPPORT=ON \
|
|
|
|
-D INSTALL_MBEDTLS_HEADERS=ON \
|
|
|
|
-D MBEDTLS_FATAL_WARNINGS=OFF \
|
|
|
|
-Wno-dev
|
2020-03-18 13:23:54 +01:00
|
|
|
|
2023-08-10 17:21:08 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-03-18 13:23:54 +01:00
|
|
|
}
|