aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wolfssl/APKBUILD
blob: eab221dfe42b107f586ae10a635d20b2b0d965fc (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=wolfssl
pkgver=5.3.0
_pkgver=$pkgver-stable
pkgrel=0
pkgdesc="Embedded TLS Library"
url="https://www.wolfssl.com"
arch="all"
license="GPL-2.0-only"
makedepends="
	autoconf
	automake
	libtool
	"
subpackages="$pkgname-dbg $pkgname-dev"
source="https://github.com/wolfSSL/wolfssl/archive/v$_pkgver/wolfssl-$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
options="!check"  # there are actually no tests! >_<

prepare() {
	default_prepare

	./autogen.sh
}

build() {
	# Note: Primary development uses automake, the support for CMake is
	# still under development.

	local extra_opts=
	case "$CARCH" in
		 x86_64) extra_opts="--enable-aesni";;
	esac

	# We use --enable-all and --enable-reproducible-build instead of
	# --enable-distro to ensure options.h gets installed.
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-silent-rules \
		--enable-shared \
		--enable-static \
		--enable-reproducible-build \
		--enable-all \
		--enable-sha512 \
		--enable-bigcache \
		--enable-base64encode \
		--disable-md5 \
		--enable-sni \
		--enable-pkcs11 \
		--disable-examples \
		$extra_opts
	make
}

package() {
	make DESTDIR="$pkgdir" install

	# No useful stuff here.
	rm -rf "$pkgdir"/usr/share/doc
}

sha512sums="
399d2b8aad58471d237d21dea68c33fde2b9a3c117c554c241d9174db02847a6c31afae2908839d18f9ada317b2388560a24c077b76014f663227061342bf045  wolfssl-5.3.0-stable.tar.gz
"