# Template file for 'gsoap'
pkgname=gsoap
version=2.8.46
revision=1
build_style=gnu-configure
hostmakedepends="unzip flex autoconf"
if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" gsoap"
fi
makedepends="libressl-devel zlib-devel"
short_desc="Toolkit for SOAP and REST Web Services and XML-Based Applications"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-3"
homepage="http://www.cs.fsu.edu/~engelen/soap.html"
distfiles="${SOURCEFORGE_SITE}/gsoap2/gsoap_${version}.zip"
checksum=3083818fb42b9e7251daf21728132db15354eb8c14060c2dc6949dafbec976be
wrksrc="${pkgname}-${version%.*}"
disable_parallel_build=yes
configure_args=" --enable-ipv6"

gsoap-devel_package() {
	depends="gsoap>=${version}_${revision} $makedepends"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/share"
	}
}
