mbedtls: update to 2.0.0.

This commit is contained in:
Enno Boland 2015-07-27 11:25:14 +02:00
parent dc09909f6b
commit b84269db8b
2 changed files with 9 additions and 17 deletions

View file

@ -1962,7 +1962,9 @@ librrd_th.so.4 rrdtool-1.4.9_1
libmosquitto.so.1 libmosquitto-1.4_1
libmosquittopp.so.1 libmosquittopp-1.4_1
libmpv.so.1 mpv-0.8.0_2
libmbedtls.so.9 mbedtls-1.3.11_1
libmbedtls.so.10 mbedtls-2.0.0_1
libmbedcrypto.so.0 mbedtls-2.0.0_1
libmbedx509.so.0 mbedtls-2.0.0_1
libdmtx.so.0 libdmtx-0.7.4_1
libdbus-c++-1.so.0 libdbus-c++-0.9.0_1
libdbus-c++-glib-1.so.0 libdbus-c++-0.9.0_1

View file

@ -1,28 +1,18 @@
# Template file for 'mbedtls'
pkgname=mbedtls
version=1.3.11
version=2.0.0
revision=1
replaces="polarssl>=0 libpolarssl>=0"
short_desc="Portable cryptographic TLS library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
hostmakedepends="perl cmake"
license="GPL-2"
homepage="https://tls.mbed.org/"
distfiles="https://tls.mbed.org/download/mbedtls-${version}-gpl.tgz"
checksum=67a593027b6a442a4fa5b6c224c4ac8cdae5be721f5a28a11d34f10dcda441cb
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
}
checksum=149a06621368540b7e1cef1b203c268439c2edbf29e2e9471d8021125df34952
build_style=cmake
configure_args=' -DENABLE_TESTING=Off -DUSE_SHARED_MBEDTLS_LIBRARY=On
-DLINK_WITH_PTHREAD=On'
mbedtls-devel_package() {
short_desc+=" - development files"