blob: 0b375dcf8c9cf8afc335ed5ea31f55d0d1cb375d (
plain)
1 # Description: Cryptographic library for embedded systems
2 # URL: https://tls.mbed.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-jsonschema python3-jinja2
5
6 name=mbedtls
7 version=3.3.0
8 release=1
9 source=(https://github.com/ARMmbed/mbedtls/archive/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$name-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
17 -D ENABLE_ZLIB_SUPPORT=ON \
18 -D USE_SHARED_MBEDTLS_LIBRARY=ON \
19 -D INSTALL_MBEDTLS_HEADERS=ON \
20 -D MBEDTLS_FATAL_WARNINGS=OFF \
21 -Wno-dev
22
23 cmake --build build
24 DESTDIR=$PKG cmake --install build
25 }
|