Date: Tuesday, March 10, 2020 @ 20:32:32 Author: anthraxx Revision: 593926
archrelease: copy trunk to community-x86_64 Added: mbedtls/repos/community-x86_64/PKGBUILD (from rev 593925, mbedtls/trunk/PKGBUILD) Deleted: mbedtls/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 94 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 45 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-03-10 20:32:27 UTC (rev 593925) +++ PKGBUILD 2020-03-10 20:32:32 UTC (rev 593926) @@ -1,49 +0,0 @@ -# Maintainer: Kyle Keen <keen...@gmail.com> -# Contributor: Mihai Militaru <mihai militaru at xmpp dot ro> -# Contributor: carstene1ns <arch carsten-teibes.de> - -pkgname=mbedtls -pkgver=2.16.3 -pkgrel=1 -pkgdesc="Portable cryptographic and SSL/TLS library, aka polarssl" -arch=('x86_64') -url="https://tls.mbed.org" -license=('Apache') -provides=('polarssl') -replaces=('polarssl') -conflicts=('polarssl') -source=("https://tls.mbed.org/download/mbedtls-$pkgver-gpl.tgz") -#source=("https://tls.mbed.org/download/mbedtls-$pkgver-apache.tgz") -sha1sums=('03220368f76e358986cc00a842ccc824f8407f83') -depends=('glibc') -checkdepends=('python') -options=('staticlibs') - -# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-libs/polarssl/files/polarssl-1.3.8-ssl_pthread_server.patch -# https://github.com/alucryd/aur-alucryd/blob/master/personal/polarssl/PKGBUILD -# https://aur.archlinux.org/packages/po/polarssl-git/PKGBUILD - -prepare() { - cd "$pkgname-$pkgver" - # enable flags for non-embedded systems - sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h - sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h - - # FS#49914 (2.3.0-2) - sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h -} - -build() { - cd "$pkgname-$pkgver" - LDFLAGS+=" -I../include " make SHARED=1 no_test -} - -check() { - cd "$pkgname-$pkgver" - make SHARED=1 PYTHON=python check -} - -package() { - cd "$pkgname-$pkgver" - make DESTDIR="$pkgdir/usr" install -} Copied: mbedtls/repos/community-x86_64/PKGBUILD (from rev 593925, mbedtls/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-03-10 20:32:32 UTC (rev 593926) @@ -0,0 +1,45 @@ +# Maintainer: Kyle Keen <keen...@gmail.com> +# Contributor: Mihai Militaru <mihai militaru at xmpp dot ro> +# Contributor: carstene1ns <arch carsten-teibes.de> + +pkgname=mbedtls +pkgver=2.16.5 +pkgrel=1 +pkgdesc="Portable cryptographic and SSL/TLS library, aka polarssl" +arch=('x86_64') +url="https://tls.mbed.org" +license=('Apache') +depends=('glibc' 'sh') +checkdepends=('python') +provides=('polarssl' 'libmbedcrypto.so' 'libmbedtls.so' 'libmbedx509.so') +replaces=('polarssl') +conflicts=('polarssl') +options=('staticlibs') +source=("https://tls.mbed.org/download/mbedtls-$pkgver-apache.tgz") +sha1sums=('c36962183e05467aa1dadafcaacf90216a737866') +b2sums=('11bf2502391286b6b678f2d57fae9ca4d592d3ec12e7e5770993085517ca158fec1c9114601eb07ef42b671148af3f126132d8b890e97db4ee2111e0a724a32b') + +prepare() { + cd "$pkgname-$pkgver" + # enable flags for non-embedded systems + sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h + sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h + + # FS#49914 (2.3.0-2) + sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h +} + +build() { + cd "$pkgname-$pkgver" + LDFLAGS+=" -I../include " make SHARED=1 no_test +} + +check() { + cd "$pkgname-$pkgver" + make SHARED=1 PYTHON=python check +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir/usr" install +}