blob: b679e971cae9844543045f42d5a1f0b3fab3ffd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: David Runge <dvzrv@archlinux.org>
pkgname=wolfssl-jni
_pkgname=${pkgname%%-jni}
pkgver=5.7.4
pkgrel=2
pkgdesc="Lightweight, portable, C-language-based SSL/TLS library (with jni support)"
arch=(x86_64 aarch64 armv7h)
url="https://www.wolfssl.com/"
license=(GPL-2.0-or-later)
depends=(
bash
glibc
)
makedepends=(cmake)
provides=(
libwolfssl.so
wolfssl
)
conflicts=(wolfssl)
source=(
${pkgname}-${pkgver}-stable.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/refs/tags/v${pkgver}-stable.tar.gz
)
sha256sums=('6c70f6fab34e2f963a255c3637c0c6f7250df2d1ef7c34eebca4f8e8d7323399')
validpgpkeys=(
A2A48E7BCB96C5BECB987314EBC80E415CA29677 # wolfSSL <secure@wolfssl.com>
)
prepare() {
cd ${_pkgname}-${pkgver}-stable
./autogen.sh
}
build() {
cd ${_pkgname}-${pkgver}-stable
./configure \
--build=${CBUILD} \
--host=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--enable-shared \
--enable-static \
--enable-reproducible-build \
--disable-opensslall \
--disable-opensslextra \
--enable-aescbc-length-checks \
--enable-curve25519 \
--enable-ed25519 \
--enable-ed25519-stream \
--disable-oldtls \
--enable-base64encode \
--enable-tlsx \
--enable-scrypt \
--disable-examples \
--enable-keygen \
--enable-wolfssh \
--enable-jni
make
}
check() {
cd ${_pkgname}-${pkgver}-stable
./wolfcrypt/test/testwolfcrypt
}
package() {
cd ${_pkgname}-${pkgver}-stable
DESTDIR="${pkgdir}" make install
cp -P src/.libs/libwolfssl.so.* "${pkgdir}/usr/lib/"
install -vDm644 {README,ChangeLog}.md -t "${pkgdir}/usr/share/doc/${_pkgname}/"
}
|