[arch-commits] Commit in mbedtls/repos (2 files)

Anatol Pomozov anatolik at archlinux.org
Tue Nov 19 15:15:37 UTC 2019


    Date: Tuesday, November 19, 2019 @ 15:15:36
  Author: anatolik
Revision: 530424

archrelease: copy trunk to community-testing-x86_64

Added:
  mbedtls/repos/community-testing-x86_64/
  mbedtls/repos/community-testing-x86_64/PKGBUILD
    (from rev 530423, mbedtls/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: mbedtls/repos/community-testing-x86_64/PKGBUILD (from rev 530423, mbedtls/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-11-19 15:15:36 UTC (rev 530424)
@@ -0,0 +1,49 @@
+# Maintainer: Kyle Keen <keenerd at 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
+}



More information about the arch-commits mailing list