29 lines
826 B
Bash
29 lines
826 B
Bash
# Template file for 'mbedtls'
|
|
pkgname=mbedtls
|
|
version=2.3.0
|
|
revision=1
|
|
hostmakedepends="perl"
|
|
build_style=cmake
|
|
configure_args="-DENABLE_TESTING=0 -DUSE_SHARED_MBEDTLS_LIBRARY=1"
|
|
short_desc="Portable cryptographic TLS library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="Apache-2.0"
|
|
homepage="https://tls.mbed.org/"
|
|
distfiles="https://tls.mbed.org/download/mbedtls-${version}-apache.tgz"
|
|
checksum=590734c8bc8b3ac48e9123d44bf03562e91f8dce0d1ac2615c318c077f3215b2
|
|
|
|
pre_configure() {
|
|
sed -i include/mbedtls/config.h \
|
|
-e 's/.*\(#define MBEDTLS_THREADING_C\)/\1/' \
|
|
-e 's/.*\(#define MBEDTLS_THREADING_PTHREAD\)/\1/'
|
|
}
|
|
|
|
mbedtls-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|