# Automatically generated by apkbuild-cpan, template 3
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-code-tidyall-plugin-flake8
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Code-TidyAll-Plugin-Flake8
pkgver=0.4.0
pkgrel=1
pkgdesc="Perl module for Code-TidyAll-Plugin-Flake8"
url="https://metacpan.org/release/Code-TidyAll-Plugin-Flake8/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-code-tidyall perl-moo perl-string-shellquote py3-flake8"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Code-TidyAll-Plugin-Flake8-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
bbd096f30671b249b63e564648dc38d18db20eb1b7aa81dd0c7a9a197f4573bfa54fc3e4f5621e14906873d7fcb15fc9a593a492571402400355d589765e537e  Code-TidyAll-Plugin-Flake8-0.4.0.tar.gz
"
