52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
# Template file for 'mbedtls'
|
|
pkgname=mbedtls
|
|
version=3.6.0
|
|
revision=1
|
|
_framework_ver=750634d3a51eb9d61b59fd5d801546927c946588
|
|
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
|
|
https://github.com/Mbed-TLS/mbedtls-framework/archive/${_framework_ver}.tar.gz>framework-${_framework_ver}.tar.gz"
|
|
checksum="32c500e73ee878e193e7d66bf5e4c34fb42bb968a6c9f9488aa466b16f6f3bff
|
|
4845b5ae123c036cf9ec9e0ff0478a24b2be95450fc36a0fb80e2748518b424f"
|
|
skip_extraction="framework-${_framework_ver}.tar.gz"
|
|
|
|
post_extract() {
|
|
vsrcextract -C framework "framework-${_framework_ver}.tar.gz"
|
|
}
|
|
|
|
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/hello
|
|
rm "${PKGDESTDIR}"/usr/bin/query_compile_time_config
|
|
}
|
|
}
|
|
|
|
mbedtls-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
conflicts="mbedtls2-devel>=0"
|
|
replaces="mbedtls2-devel>=0"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|