2015-02-24 10:27:27 +00:00
|
|
|
# Template file for 'mbedtls'
|
|
|
|
pkgname=mbedtls
|
|
|
|
version=1.3.10
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=2
|
2015-02-24 10:27:27 +00:00
|
|
|
replaces="polarssl>=0 libpolarssl>=0"
|
|
|
|
short_desc="Portable cryptographic TLS library"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-02-24 10:27:27 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|