2022-08-16 23:53:14 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - cmake with -DWOLFSSL_SHA3=ON, required and not set by default for v7
2023-11-11 13:27:15 +00:00
# WARNING: This upstream **does not** guarantee ABI stability. Expect soname changes in patch-level version bumps (https://github.com/wolfSSL/wolfssl/issues/6928)
2022-08-16 23:53:14 +00:00
pkgname = wolfssl
2024-07-14 14:16:55 +00:00
pkgver = 5.7.2
2023-11-11 13:27:15 +00:00
pkgrel = 1
2022-08-16 23:53:14 +00:00
pkgdesc = "Lightweight, portable, C-language-based SSL/TLS library"
arch = ( x86_64)
url = "https://www.wolfssl.com/"
2023-11-11 13:27:15 +00:00
license = ( GPL-2.0-or-later)
2022-08-16 23:53:14 +00:00
depends = ( glibc)
makedepends = ( cmake)
provides = ( libwolfssl.so)
source = (
$pkgname -$pkgver -stable.tar.gz::https://github.com/$pkgname /$pkgname /archive/refs/tags/v$pkgver -stable.tar.gz
https://github.com/$pkgname /$pkgname /releases/download/v$pkgver -stable/$pkgname -$pkgver -stable.tar.gz.asc
)
2024-07-14 14:16:55 +00:00
sha512sums = ( 'daec6427cbee6628da0dcaad2f721efb0591532fcb3bd688e7212aaca8a442ac10176e5b9eb6b14fea6c49a613d6b086ff777eafc5c27b25d51f758ad0aa13bd'
2022-12-31 17:56:25 +00:00
'SKIP' )
2024-07-14 14:16:55 +00:00
b2sums = ( '52bbabfd91fb5fdb1ef78dfafa7de86afaae821da14b9336bdf52b057444ac63f7afb4cc99d80ec8040adadbd4e8e07eb186499c12398b625aee4824e2dc503c'
2022-12-31 17:56:25 +00:00
'SKIP' )
2022-08-16 23:53:14 +00:00
validpgpkeys = (
A2A48E7BCB96C5BECB987314EBC80E415CA29677 # wolfSSL <secure@wolfssl.com>
)
build( ) {
2022-12-31 17:56:25 +00:00
local cmake_options = (
-B build
2023-07-14 12:11:03 +00:00
-D CMAKE_BUILD_TYPE = None
-D CMAKE_INSTALL_PREFIX = /usr
-D WOLFSSL_CURVE25519 = ON
-D WOLFSSL_CURVE448 = ON
-D WOLFSSL_ED25519 = ON
-D WOLFSSL_ED448 = ON
-D WOLFSSL_SHA3 = ON
-D WOLFSSL_REPRODUCIBLE_BUILD = ON
-D WOLFSSL_SNI = ON
-D WARNING_C_FLAGS = " $CFLAGS "
-W no-dev
2022-08-16 23:53:14 +00:00
-S $pkgname -$pkgver -stable
2022-12-31 17:56:25 +00:00
)
cmake " ${ cmake_options [@] } "
2022-08-16 23:53:14 +00:00
cmake --build build --verbose
}
check( ) {
cd build
2023-07-14 12:11:03 +00:00
./wolfcrypt/test/testwolfcrypt
2022-08-16 23:53:14 +00:00
}
package( ) {
DESTDIR = " $pkgdir " cmake --install build
install -vDm 644 $pkgname -$pkgver -stable/{ README,ChangeLog} .md -t " $pkgdir /usr/share/doc/ $pkgname / "
}