summaryrefslogblamecommitdiff
path: root/user/perl-perl-tidy/APKBUILD
blob: b5c117994ca00085ae9355c9d2e3df8962461e2c (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-perl-tidy
_pkgreal=Perl-Tidy
_author=SHANCOCK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=20220217
pkgrel=0
pkgdesc="Indent and reformat Perl scripts"
url="https://metacpan.org/release/Perl-Tidy"
arch="noarch"
license="GPL-2.0-only"
depends="perl"
makedepends="perl-dev"
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="696c35469f807e075fa41959e01c01d2f70ea7cd36caca60b82cade72ded011b969c682c3ac60bcc0f0e92475012efd568179c6430a138df50ad68760e1758dc  Perl-Tidy-20220217.tar.gz"