# Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=perl-tidy pkgver=20230701 pkgrel=1 pkgdesc="Parses and beautifies perl source" url="https://metacpan.org/dist/Perl-Tidy" arch="noarch" license="GPL-2.0-only" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-$pkgver.tar.gz" builddir="$srcdir/Perl-Tidy-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 29f8607d366644f9d08311f8bc508426a63e6fe8062d5ddbeb9f4ceb53b38a68f46b3f39c58ab0998ea3ce13998be430a7ef57130e0e3964798db9af07cf4a4c Perl-Tidy-20230701.tar.gz "