aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralpine-mips-patches <info@mobile-stream.com>2019-01-07 08:32:12 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-01-08 14:25:52 +0000
commitb72837596cffd6dd6c909bbf034877f780c02189 (patch)
tree8b1ad43133308f9e609cdcea0611c2b3112abdd6
parentf3a83a818047cb9faf67fa2d3fd27c382aefe10c (diff)
downloadaports-b72837596cffd6dd6c909bbf034877f780c02189.tar.gz
aports-b72837596cffd6dd6c909bbf034877f780c02189.tar.bz2
aports-b72837596cffd6dd6c909bbf034877f780c02189.tar.xz
main/bearssl: upgrade to 0.6, honour *FLAGS
Also enable cross-compilation support. Note APKBUILD copies non-development files into /bin and /lib, not sure if it adheres to Alpine policies.
-rw-r--r--main/bearssl/APKBUILD17
1 files 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
@@ -1,7 +1,7 @@
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: Laurent Bercot <ska-devel@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/"
@@ -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"
}
@@ -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"