wok annotate mbedtls/receipt @ rev 25181

Up perl-log-log4perl (1.55)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 09 08:28:32 2022 +0000 (23 months ago)
parents 45673422e44e
children 7364ffdaaa60
rev   line source
al@20516 1 # SliTaz package receipt v2.
al@20516 2
al@20516 3 PACKAGE="mbedtls"
al@20516 4 VERSION="2.6.0"
al@20516 5 CATEGORY="security"
al@20516 6 SHORT_DESC="Portable cryptographic and SSL/TLS library (ex polarssl)"
al@20516 7 MAINTAINER="al.bobylev@gmail.com"
al@20516 8 LICENSE="Apache"
pascal@25177 9 WEB_SITE="https://www.trustedfirmware.org/projects/mbed-tls/"
al@20516 10
pascal@25181 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25181 12 WGET_URL="https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/$TARBALL"
al@20516 13
pascal@25181 14 # What is the latest version available today?
pascal@24076 15 current_version()
pascal@24076 16 {
pascal@25181 17 wget -O - https://github.com/Mbed-TLS/mbedtls/releases 2>/dev/null | \
pascal@24076 18 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24076 19 }
pascal@24076 20
pascal@25181 21 # Rules to configure and make the package.
al@20516 22 compile_rules() {
al@20516 23 sed \
al@20516 24 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
al@20516 25 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
al@20516 26 -i include/mbedtls/config.h
al@20516 27 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
al@20516 28
al@20516 29 LDFLAGS="$LDFLAGS -I../include " \
al@20516 30 make SHARED=1 no_test &&
al@20516 31 make DESTDIR=$install/usr install
al@20516 32 }
al@20516 33
pascal@25181 34 # Rules to gen a SliTaz package suitable for Tazpkg.
al@20516 35 genpkg_rules() {
al@20516 36 mkdir -p $fs/usr/lib/
al@20516 37 cp -a $install/usr/bin/ $fs/usr/
al@20516 38 cp -a $install/usr/lib/*.so* $fs/usr/lib/
al@20516 39 }