Mail archive
alpine-aports

[alpine-aports] [PATCH] main/bearssl: upgrade to 0.6, honour *FLAGS

From: alpine-mips-patches <info_at_mobile-stream.com>
Date: Mon, 7 Jan 2019 08:32:12 +0000

Also enable cross-compilation support.

Note APKBUILD copies non-development files into /bin and /lib, not
sure if it adheres to Alpine policies.
---
 main/bearssl/APKBUILD | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/main/bearssl/APKBUILD b/main/bearssl/APKBUILD
index b4867d3ad3..305432c088 100644
--- a/main/bearssl/APKBUILD
+++ b/main/bearssl/APKBUILD
_at_@ -1,7 +1,7 @@
 # Maintainer: Laurent Bercot <ska-devel_at_skarnet.org>
 # Contributor: Laurent Bercot <ska-devel_at_skarnet.org>
 pkgname=bearssl
-pkgver=0.5
+pkgver=0.6
 pkgrel=0
 pkgdesc="The BearSSL implementation of the SSL/TLS protocol"
 url="https://bearssl.org/"
_at_@ -14,10 +14,12 @@ builddir="$srcdir/$pkgname-$pkgver"
 build() {
 	cd "$builddir"
 	make \
-	  CC=gcc \
-	  LD=gcc \
-	  LDDLL=gcc \
-	  LDDLLFLAGS="-shared -Wl,-soname,libbearssl.so.${pkgver%%.*}" \
+	  CC="${CC:-gcc}" \
+	  CFLAGS="-W -Wall -fPIC $CFLAGS" \
+	  LD="${CC:-gcc}" \
+	  LDFLAGS="$CFLAGS $LDFLAGS" \
+	  LDDLL="${CC:-gcc}" \
+	  LDDLLFLAGS="$CFLAGS $LDFLAGS -shared -Wl,-soname,libbearssl.so.${pkgver%%.*}" \
 	  D=".so.$pkgver"
 }
 
_at_@ -33,8 +35,9 @@ package() {
 
 check() {
 	cd "$builddir/build"
-	./testx509 && ./testcrypto all
+	./testx509
+	./testcrypto all
 }
 
-sha512sums="1bd510f62f36620cda5317509e72bd0c6f3538c30aca2695e80c26d1ea7270d174ed3fbb6d690b3ced5d51ce3f6bfc776d78a196492900296a452bc4c8185e45  bearssl-0.5.tar.gz
+sha512sums="f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4b0033f909a2e4568a1d916cc6ce4736222900691e1f8359a  bearssl-0.6.tar.gz
 f5fe047862eb355a662ccb1b95c2ca4a870ac0f8d3f4cada5396d2f6a6635647db53fbeb038f9a7651b84d6cda32b6415ce0f69a8da92636d3b3b76578114d5c  bearssl-brssl-dynamic.patch"
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Jan 07 2019 - 08:32:12 UTC