wok view mbedtls/receipt @ rev 24464

created recipes for dargui and dargui-lang
author Hans-G?nter Theisgen
date Thu Feb 17 11:06:13 2022 +0100 (2022-02-17)
parents 3ed4ba0fc8db
children 45673422e44e
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 current_version()
15 {
16 wget -O - https://github.com/ARMmbed/mbedtls/releases 2>/dev/null | \
17 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
18 }
20 compile_rules() {
21 sed \
22 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
23 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
24 -i include/mbedtls/config.h
25 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
27 LDFLAGS="$LDFLAGS -I../include " \
28 make SHARED=1 no_test &&
29 make DESTDIR=$install/usr install
30 }
32 genpkg_rules() {
33 mkdir -p $fs/usr/lib/
34 cp -a $install/usr/bin/ $fs/usr/
35 cp -a $install/usr/lib/*.so* $fs/usr/lib/
36 }