# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=libgss
pkgver=1.0.4
pkgrel=1
pkgdesc="An implementation of the Generic Security Service Application Program Interface"
url="https://www.gnu.org/software/gss/"
arch="all"
license="( LGPL-3.0-or-later OR GPL-2.0-or-later ) AND GPL-3.0-or-later"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/gss/gss-$pkgver.tar.gz"
builddir="$srcdir/gss-$pkgver"

build() {
	# gnulib is a fantastic piece of software! really brings back the 90's
	# nostalgia
	export GNULIBHEADERS_OVERRIDE_WINT_T=0
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-nls
	make
}

check() {
	make tests
}

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

sha512sums="
9cab60212faf064bf6b1122cee3596d438e75dbbf495621b577407c43dc186f8c897cecfe0aff600c4ecbfdba0cfc1b35ee94105b21b49efa35a0b98c0b3360e  gss-1.0.4.tar.gz
"
