wok view mbedtls/receipt @ rev 22810

Add squidanalyser
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 31 12:24:59 2020 +0100 (2020-01-31)
parents
children 3e9a9990c985
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 compile_rules() {
15 sed \
16 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
17 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
18 -i include/mbedtls/config.h
19 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
21 LDFLAGS="$LDFLAGS -I../include " \
22 make SHARED=1 no_test &&
23 make DESTDIR=$install/usr install
24 }
26 genpkg_rules() {
27 mkdir -p $fs/usr/lib/
28 cp -a $install/usr/bin/ $fs/usr/
29 cp -a $install/usr/lib/*.so* $fs/usr/lib/
30 }