summaryrefslogblamecommitdiff
path: root/user/perl-test-perltidy/APKBUILD
blob: 004f7c924e75cef355cf632e987ea511d73ef0da (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=20210709
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="0349722c39a9b7ef9286b6d6c694f1695c81a8b14e77da9171e49fc31e605dcdfc89e76ee12014ba6853b009bad020dae96e119450bb8601b0cee5f501633f71  Test-PerlTidy-20210709.tar.gz"