42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'mbedtls'
|
|
pkgname=mbedtls
|
|
reverts="2.17.0_1"
|
|
version=2.16.9
|
|
revision=1
|
|
wrksrc="mbedtls-mbedtls-${version}"
|
|
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/development/ChangeLog"
|
|
distfiles="https://github.com/ARMmbed/mbedtls/archive/mbedtls-${version}.tar.gz"
|
|
checksum=b7ca99ee10551b5b13242b7effebefd2a5cc38c287e5f5be1267d51ee45effe3
|
|
|
|
|
|
pre_configure() {
|
|
sed -i include/mbedtls/config.h \
|
|
-e 's/.*\(#define MBEDTLS_THREADING_C\)/\1/' \
|
|
-e 's/.*\(#define MBEDTLS_THREADING_PTHREAD\)/\1/'
|
|
}
|
|
|
|
mbedtls-utils_package() {
|
|
short_desc+=" - additional utilities"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
rm "${PKGDESTDIR}"/usr/bin/query_compile_time_config
|
|
}
|
|
}
|
|
|
|
mbedtls-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|