wok view mbedtls/receipt @ rev 21473
updated mosh (1.2.5 -> 1.3.2) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 30 21:45:29 2019 +0200 (2019-04-30) |
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 }