wok-current view mbedtls/receipt @ rev 25727
Add miss stuff folder for libxml++, dbus-c++
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Nov 05 13:46:37 2024 +0000 (4 weeks ago) |
parents | 45673422e44e |
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://www.trustedfirmware.org/projects/mbed-tls/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://github.com/Mbed-TLS/mbedtls/releases 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules() {
23 sed \
24 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
25 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
26 -i include/mbedtls/config.h
27 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
29 LDFLAGS="$LDFLAGS -I../include " \
30 make SHARED=1 no_test &&
31 make DESTDIR=$install/usr install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules() {
36 mkdir -p $fs/usr/lib/
37 cp -a $install/usr/bin/ $fs/usr/
38 cp -a $install/usr/lib/*.so* $fs/usr/lib/
39 }