wok annotate mbedtls/receipt @ rev 25059

lvmts: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 06 16:43:48 2022 +0000 (23 months ago)
parents 3ed4ba0fc8db
children 45673422e44e
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"
al@20516 9 WEB_SITE="https://tls.mbed.org/"
al@20516 10
al@20516 11 TARBALL="$PACKAGE-$VERSION-gpl.tgz"
al@20516 12 WGET_URL="https://tls.mbed.org/download/$TARBALL"
al@20516 13
pascal@24076 14 current_version()
pascal@24076 15 {
pascal@24076 16 wget -O - https://github.com/ARMmbed/mbedtls/releases 2>/dev/null | \
pascal@24076 17 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24076 18 }
pascal@24076 19
al@20516 20 compile_rules() {
al@20516 21 sed \
al@20516 22 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
al@20516 23 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
al@20516 24 -i include/mbedtls/config.h
al@20516 25 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
al@20516 26
al@20516 27 LDFLAGS="$LDFLAGS -I../include " \
al@20516 28 make SHARED=1 no_test &&
al@20516 29 make DESTDIR=$install/usr install
al@20516 30 }
al@20516 31
al@20516 32 genpkg_rules() {
al@20516 33 mkdir -p $fs/usr/lib/
al@20516 34 cp -a $install/usr/bin/ $fs/usr/
al@20516 35 cp -a $install/usr/lib/*.so* $fs/usr/lib/
al@20516 36 }