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



                               
               



                                                
                                       
                                                                             
                             
                                        
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                            
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test-perltidy
_pkgreal=Test-PerlTidy
_author=SHLOMIF
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=20220902
pkgrel=0
pkgdesc="Check all your Perl files for tidiness"
url="https://metacpan.org/release/Test-PerlTidy"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-file-finder perl-file-slurp perl-perl-tidy perl-text-diff"
checkdepends="perl-path-tiny"
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="2d184ba1571403505530de8ae02a9c670ffc1467fe42971a4525d93cc751d736d4d985f9dfb27f770140c1325dc33ee6a3f4596ab58a15806e9c85b5f2bdd1b9  Test-PerlTidy-20220902.tar.gz"