# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-soap-lite
_pkgreal=SOAP-Lite
_author=PHRED
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.27
pkgrel=0
pkgdesc="Perl's Web Services Toolkit"
url="https://metacpan.org/release/SOAP-Lite"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-class-inspector perl-io-sessiondata perl-io-socket-ssl
	perl-libwww perl-lwp-protocol-https perl-task-weaken perl-uri
	perl-xml-parser perl-xml-parser-lite perl"
checkdepends="perl-test-warn"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="38ecd0eb2af3ca415cb82e98a68aabd2cd3eca1625a7850723ae3c9f03f32f1ce3141d2a9382b80e250a88e3007eb7a0aa75f47c7e593c2c2025a29c8c32ee3b  SOAP-Lite-1.27.tar.gz"