wok view mbedtls/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents cd6fc250348b
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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }