OCaml 4.14.0 rebuild
[arch-packages.git] / wolfssl / repos / extra-x86_64 / PKGBUILD
blob186a0aaa5fccd9e17eb88558ef988b5c5aa625f5
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=wolfssl
4 pkgver=5.3.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 options=(debug)
14 source=(
15   $pkgname-$pkgver-stable.tar.gz::https://github.com/$pkgname/$pkgname/archive/refs/tags/v$pkgver-stable.tar.gz
16   https://github.com/$pkgname/$pkgname/releases/download/v$pkgver-stable/$pkgname-$pkgver-stable.tar.gz.asc
18 sha512sums=('399d2b8aad58471d237d21dea68c33fde2b9a3c117c554c241d9174db02847a6c31afae2908839d18f9ada317b2388560a24c077b76014f663227061342bf045'
19             'SKIP')
20 b2sums=('ad176c11959270d21c91104f030063f5e6241e7794b6309ea3ccffc7c106c05c5c4feea373fcf0eb68cb4f79d72c4680cd39d0b13984cd3dbc1d781e7ff673ba'
21         'SKIP')
22 validpgpkeys=(
23   A2A48E7BCB96C5BECB987314EBC80E415CA29677  # wolfSSL <secure@wolfssl.com>
26 build() {
27   cmake \
28     -DCMAKE_INSTALL_PREFIX=/usr \
29     -DCMAKE_BUILD_TYPE=None \
30     -DWOLFSSL_CURVE25519=ON \
31     -DWOLFSSL_CURVE448=ON \
32     -DWOLFSSL_ED25519=ON \
33     -DWOLFSSL_ED448=ON \
34     -DWOLFSSL_REPRODUCIBLE_BUILD=ON \
35     -Wno-dev \
36     -B build \
37     -S $pkgname-$pkgver-stable
38   cmake --build build --verbose
41 check() {
42   cd build
43   ctest --output-on-failure
46 package() {
47   DESTDIR="$pkgdir" cmake --install build
48   install -vDm 644 $pkgname-$pkgver-stable/{README,ChangeLog}.md -t "$pkgdir/usr/share/doc/$pkgname/"