# Automatically generated by apkbuild-cpan, template 3
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-code-tidyall-plugin-sortlines-naturally
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Code-TidyAll-Plugin-SortLines-Naturally
pkgver=0.000003
pkgrel=1
pkgdesc="Sort lines of a file using Unicode::Collate::Locale"
url="https://metacpan.org/release/Code-TidyAll-Plugin-SortLines-Naturally/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-code-tidyall perl-moo"
makedepends="perl-dev perl-module-build"
checkdepends="perl-capture-tiny perl-file-slurper"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Code-TidyAll-Plugin-SortLines-Naturally-$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="
532d7235179fde5426cd927de3562b5836036b80693a0e7120573a07016de601860a5b7988e4f11f302b678714eb4b38911b8a1ec6335ef1fba78ff7272b386a  Code-TidyAll-Plugin-SortLines-Naturally-0.000003.tar.gz
"
