# Contributor: A. Wilcox # Maintainer: Síle Ekaterin Liszka pkgname=perl-test-trailingspace _pkgreal=Test-TrailingSpace _author=SHLOMIF _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=0.0601 pkgrel=0 pkgdesc="Test for trailing spaces in Perl source files" url="https://metacpan.org/release/Test-TrailingSpace" arch="noarch" license="MIT" depends="perl perl-file-find-object-rule" makedepends="perl-dev perl-module-build" 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="71a207be6d3d0791ca3f7784cda053a1de33969a531805afea3d2ce4985eb745afa5ab8cc9aa8642e236eb516dafe5962c3a433c2b53910d0b272e94efb5586b Test-TrailingSpace-0.0601.tar.gz"