summaryrefslogtreecommitdiff
path: root/wolfssl/PKGBUILD
blob: 97bf3170fd8c30193dbf2ca78d2dc312a6e1202f (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
# Maintainer: Aki <please@ignore.pl>
pkgname=wolfssl
pkgver=5.6.0
pkgrel=4
pkgdesc='Small, fast, portable implementation of TLS/SSL for embedded devices to the cloud'
license=('GPL 2.0')
arch=(x86_64 i686)
provides=("${pkgname}")
conflicts=("${pkgname}")
makedepends=(autoconf)
depends=(libtool)
source=("https://github.com/wolfSSL/${pkgname}/archive/refs/tags/v${pkgver}-stable.tar.gz")
sha256sums=('c1e689e21a17aa9b838e67a37c3eadfa578c8e260f8c77fb028c0316309f0636')


build() {
	cd "${pkgname}-${pkgver}-stable"
	./autogen.sh
	./configure --prefix=/usr --disable-examples --enable-ssh --enable-keygen --enable-static \
		CPPFLAGS='-DWOLFSSL_FPKI -DWOLFSSL_IP_ALT_NAME -DWOLFSSL_ALT_NAMES -DNO_WOLFSSL_DIR -DWOLFSSL_PUBLIC_ASN' \
		--enable-certext --enable-certgen
	make
}


package() {
	cd "${pkgname}-${pkgver}-stable"
	make DESTDIR="${pkgdir}" install
}