summaryrefslogblamecommitdiff
path: root/user/perl-test-perltidy/APKBUILD
blob: e5d1f393f76ae07d0c5626fec95766619a971dc7 (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=20230226
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="d1ae60209f3ec06dc3e11678b6415fd7108b0a90d5babcc388414a967407d9f44f9739a8699e36b9e68bb10dc4f3617c0306d569a2ab4ab42c127d13e8ff8fc8  Test-PerlTidy-20230226.tar.gz"