archrelease: copy trunk to extra-x86_64
[arch-packages.git] / wolfssl / repos / extra-x86_64 / PKGBUILD
blob62e2347aa831c4f43319b2ab7538077699891100
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=wolfssl
4 pkgver=5.6.0
5 pkgrel=1
6 pkgdesc="Lightweight, portable, C-language-based SSL/TLS library"
7 arch=(x86_64)
8 url="https://www.wolfssl.com/"
9 license=(GPL2)
10 depends=(glibc)
11 makedepends=(cmake)
12 provides=(libwolfssl.so)
13 source=(
14   $pkgname-$pkgver-stable.tar.gz::https://github.com/$pkgname/$pkgname/archive/refs/tags/v$pkgver-stable.tar.gz
15   https://github.com/$pkgname/$pkgname/releases/download/v$pkgver-stable/$pkgname-$pkgver-stable.tar.gz.asc
17 sha512sums=('1a7c9dbfe884b6ed22f3f1bf45f36576fcd1bbaec581369043d7200593b28fad16e1ee55df56bce892b02bdafde72d0d75f6df711ffafcbf51219eabe06ec9f8'
18             'SKIP')
19 b2sums=('2fd62c22f336ecc8d6e2c5349ce20ed7d447297b19771726d5a466ccb20a9306622f37344a87e730eb0b3379ec99878ffce540f3e8e9f2d62e47cbabf7f2153c'
20         'SKIP')
21 validpgpkeys=(
22   A2A48E7BCB96C5BECB987314EBC80E415CA29677  # wolfSSL <secure@wolfssl.com>
25 build() {
26   local cmake_options=(
27     -DCMAKE_INSTALL_PREFIX=/usr
28     -DCMAKE_BUILD_TYPE=None
29     -DWOLFSSL_CURVE25519=ON
30     -DWOLFSSL_CURVE448=ON
31     -DWOLFSSL_ED25519=ON
32     -DWOLFSSL_ED448=ON
33     -DWOLFSSL_REPRODUCIBLE_BUILD=ON
34     -DWARNING_C_FLAGS="$CFLAGS"
35     -Wno-dev
36     -B build
37     -S $pkgname-$pkgver-stable
38   )
40   cmake "${cmake_options[@]}"
41   cmake --build build --verbose
44 check() {
45   cd build
46   ctest --output-on-failure
49 package() {
50   DESTDIR="$pkgdir" cmake --install build
51   install -vDm 644 $pkgname-$pkgver-stable/{README,ChangeLog}.md -t "$pkgdir/usr/share/doc/$pkgname/"