# Template file for 'libgssglue'
pkgname=libgssglue
version=0.9
revision=1
build_style=gnu-configure
configure_args="--disable-static"
conf_files="/etc/gssapi_mech.conf"
hostmakedepends="automake libtool"
short_desc="Mechanism-switch gssapi library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://gitlab.com/gsasl/libgssglue"
changelog="https://gitlab.com/gsasl/libgssglue/-/raw/master/NEWS"
distfiles="https://gitlab.com/gsasl/libgssglue/-/archive/libgssglue-${version}/libgssglue-libgssglue-${version}.tar.gz"
checksum=a7a953f3d65f8f61772bf18a03f12ba9bdf3f0af8463063293194fe85f2d247d

pre_configure() {
	touch ChangeLog
	autoreconf -fi
}

post_install() {
	vconf ${FILESDIR}/gssapi_mech.conf
	vlicense COPYING
}

libgssglue-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
