void-packages/srcpkgs/gsoap/template

45 lines
1.1 KiB
Bash

# Template file for 'gsoap'
pkgname=gsoap
version=2.8.124
revision=2
build_style=gnu-configure
configure_args="--enable-ipv6"
hostmakedepends="unzip flex autoconf automake libtool"
makedepends="openssl-devel zlib-devel"
short_desc="Toolkit for SOAP and REST Web Services and XML-Based Applications"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.genivia.com/dev.html"
# distfiles="${SOURCEFORGE_SITE}/gsoap2/gsoap_${version}.zip"
# distfile is gone from upstream
distfiles="https://sources.voidlinux.org/gsoap-${version}/gsoap_${version}.zip"
checksum=4b798780989338f665ef8e171bbcc422a271004d62d5852666d5eeca33a6a636
disable_parallel_build=yes
CFLAGS="-fcommon"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" gsoap"
fi
pre_configure() {
autoreconf -fi
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
# run host 'soapcpp2'
sed -i 's|^\(SOAP = \).*|\1soapcpp2|' gsoap/wsdl/Makefile
fi
}
gsoap-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/share"
}
}