summaryrefslogblamecommitdiff
path: root/user/perl-test-trailingspace/APKBUILD
blob: 3da940f1422e8bd1387ac4195d6bc0c300aed8c0 (plain) (tree)
1
2
3
4
5
6
7
8

                                                                   


                               
             



                                                       
                                         
                          
                                                                                        
         



                                                                 


                 


                                                                           
                                                                                                                                                                               
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-trailingspace
_pkgreal=Test-TrailingSpace
_author=SHLOMIF
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.0302
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="00ebea59fd55a7c296944bb74eba1ac8bc55ca9a92c7cb6a548fdd150d049bfe1496fb9e54007929219af85673dc5bb20881e52dc25945d437c0ebf772eaba95  Test-TrailingSpace-0.0302.tar.gz"