# Contributor: Eivind Næss <eivnaes@yahoo.com>
# Maintainer: hash <hash@hcrypt.net>
pkgname=sstp-client
pkgver=1.0.20
pkgrel=1
pkgdesc="A client implementation of Secure Socket Tunneling Protocol (SSTP) for Linux / Mac OS-X."
url="https://gitlab.com/sstp-project/sstp-client"
# s390x, loongarch64: blocked by libressl-dev
arch="all !s390x !loongarch64"
subpackages="$pkgname-doc"
license="GPL-2.0-or-later"
makedepends="autoconf automake libtool libevent-dev libevent libressl-dev ppp-dev"
source="https://gitlab.com/sstp-project/sstp-client/-/archive/$pkgver/sstp-client-$pkgver.zip"

build() {
	./autogen.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

sha512sums="
4a30723ebd8ba7f8ac28584e2cb21abb5e7d7027fde175b6230563066d20ef8cbfff4e9b46a72d1746d0f2943ece11322d5398079111fa46bfe5d2891faf2f08  sstp-client-1.0.20.zip
"
