diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-01-08 07:42:36 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-01-08 07:42:36 +0000 |
commit | 999bf9b0f1676d84456a5d1edf0d0ace03b27d6f (patch) | |
tree | 29fc8b78dc5fd55141a7e842778c2483d6ff7309 /user/bearssl | |
parent | 28ed9fc1d657dbccab41a1bab094cb0aa056c4d3 (diff) | |
download | packages-999bf9b0f1676d84456a5d1edf0d0ace03b27d6f.tar.gz packages-999bf9b0f1676d84456a5d1edf0d0ace03b27d6f.tar.bz2 packages-999bf9b0f1676d84456a5d1edf0d0ace03b27d6f.tar.xz packages-999bf9b0f1676d84456a5d1edf0d0ace03b27d6f.zip |
user/*: Modernise / fix syntax / deps / metadata
Diffstat (limited to 'user/bearssl')
-rw-r--r-- | user/bearssl/APKBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/user/bearssl/APKBUILD b/user/bearssl/APKBUILD index ad6e8b20a..868c043af 100644 --- a/user/bearssl/APKBUILD +++ b/user/bearssl/APKBUILD @@ -1,5 +1,5 @@ -# Maintainer: Laurent Bercot <ska-adelie@skarnet.org> # Contributor: Laurent Bercot <ska-adelie@skarnet.org> +# Maintainer: Laurent Bercot <ska-adelie@skarnet.org> pkgname=bearssl pkgver=0.6 pkgrel=1 @@ -7,18 +7,25 @@ pkgdesc="The BearSSL implementation of the SSL/TLS protocol" url="https://bearssl.org/" arch="all" license="MIT" -builddir="$srcdir/$pkgname-$pkgver" +depends="" +makedepends="" subpackages="$pkgname-dev" -source="https://bearssl.org/$pkgname-$pkgver.tar.gz bearssl-brssl-dynamic.patch" +source="https://bearssl.org/$pkgname-$pkgver.tar.gz + bearssl-brssl-dynamic.patch + " build() { - cd "$builddir" make \ - CC=gcc \ - LD=gcc \ - LDDLL=gcc \ - LDDLLFLAGS="-shared -Wl,-soname,libbearssl.so.${pkgver%%.*}" \ - D=".so.$pkgver" + CC=gcc \ + LD=gcc \ + LDDLL=gcc \ + LDDLLFLAGS="-shared -Wl,-soname,libbearssl.so.${pkgver%%.*}" \ + D=".so.$pkgver" +} + +check() { + build/testx509 + build/testcrypto all } package() { @@ -31,10 +38,5 @@ package() { ln -sf "libbearssl.so.${pkgver%%.*}" "$pkgdir/lib/libbearssl.so" } -check() { - cd "$builddir/build" - ./testx509 && ./testcrypto all -} - sha512sums="f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4b0033f909a2e4568a1d916cc6ce4736222900691e1f8359a bearssl-0.6.tar.gz f5fe047862eb355a662ccb1b95c2ca4a870ac0f8d3f4cada5396d2f6a6635647db53fbeb038f9a7651b84d6cda32b6415ce0f69a8da92636d3b3b76578114d5c bearssl-brssl-dynamic.patch" |