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

                                                                   
               




                                                                        
                             
                          
                                                                                       

















                                                                           
                                                                                                                                                                            
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-perltidy
pkgver=20190402
pkgrel=0
pkgdesc="Check all your Perl files for tidiness"
url="https://metacpan.org/release/Test-PerlTidy"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl-file-finder perl-file-slurp perl-perl-tidy perl-text-diff"
checkdepends="perl-path-tiny"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Test-PerlTidy-$pkgver.tar.gz"
builddir="$srcdir/Test-PerlTidy-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="0fcdb45fff1f6d29ccd4a88b88e6c81a3e12d32ec618b33cb5751582c5c0580a628f7cddbc7c657e17c6626ac6a4d7c3b259d4d1bede8617a48adadb8985cd1a  Test-PerlTidy-20190402.tar.gz"