37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Template file for 'mbedtls'
|
|
pkgname=mbedtls
|
|
version=1.3.10
|
|
revision=2
|
|
replaces="polarssl>=0 libpolarssl>=0"
|
|
makedepends="zlib-devel libressl-devel>=2.1.4"
|
|
short_desc="Portable cryptographic TLS library"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="https://tls.mbed.org/"
|
|
distfiles="https://tls.mbed.org/download/mbedtls-${version}-gpl.tgz"
|
|
checksum=746fd88e0c6623691fc56c4eed52e40a57b2da0ac80f6dd8995094aa6adb407e
|
|
|
|
do_build() {
|
|
sed -i -e 's|//\(#define POLARSSL_THREADING_C\)|\1|' \
|
|
-e 's|//\(#define POLARSSL_THREADING_PTHREAD\)|\1|' \
|
|
include/polarssl/config.h
|
|
make CC=$CC SHARED=1 ${makejobs} no_test
|
|
}
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR}/usr install
|
|
rm ${DESTDIR}/usr/lib/libmbedtls.so
|
|
rm ${DESTDIR}/usr/lib/libpolarssl.so
|
|
ln -s libmbedtls.so.8 ${DESTDIR}/usr/lib/libmedtls.so
|
|
ln -s libmbedtls.so.8 ${DESTDIR}/usr/lib/libpolarssl.so
|
|
}
|
|
|
|
mbedtls-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
replaces="polarssl-devel>=0"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|