wok-next view mbedtls/receipt @ rev 20397

Add mbedtls, dislocker
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 02 16:11:25 2017 +0200 (2017-12-02)
parents
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mbedtls"
4 VERSION="2.6.0"
5 CATEGORY="security"
6 SHORT_DESC="Portable cryptographic and SSL/TLS library (ex polarssl)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="Apache"
9 WEB_SITE="https://tls.mbed.org/"
11 TARBALL="$PACKAGE-$VERSION-gpl.tgz"
12 WGET_URL="https://tls.mbed.org/download/$TARBALL"
14 SPLIT="mbedtls-dev"
16 compile_rules() {
17 sed -i -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
18 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
19 include/mbedtls/config.h
20 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
22 LDFLAGS="$LDFLAGS -I../include " \
23 make SHARED=1 no_test &&
24 make DESTDIR=$install/usr install
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 mbedtls) copy @std;;
30 *-dev) copy @dev;;
31 esac
32 }