# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-string-copyright
_pkgreal=String-Copyright
_author=JONASS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.003014
pkgrel=0
pkgdesc="Perl module for normalizing copyright text"
url="https://metacpan.org/pod/String::Copyright"
arch="noarch"
license="AGPL-3.0+"
depends="perl perl-exporter-tiny perl-set-intspan"
checkdepends="perl-test-without-module perl-test2-suite"
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="39874b267fcd01e6ffbcdae15af74918fddcb586c2f0708ba30b47957a4e6613689776b9e80a649689374a913b2c6c285ed58823620b6553cd56d6d99e632f08  String-Copyright-0.003014.tar.gz"