wok-next view mbedtls/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 0e59608556bf
children
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="$PACKAGE-dev"
16 compile_rules() {
17 sed \
18 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
19 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
20 -i include/mbedtls/config.h
21 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
23 LDFLAGS="$LDFLAGS -I../include " \
24 make SHARED=1 no_test &&
25 make DESTDIR=$install/usr install
26 }
28 genpkg_rules() {
29 case $PACKAGE in
30 mbedtls) copy @std;;
31 *-dev) copy @dev;;
32 esac
33 }