| 1 | # Automatically generated by apkbuild-cpan, template 3 |
| 2 | # Contributor: Duncan Bellamy <[email protected]> |
| 3 | # Maintainer: Duncan Bellamy <[email protected]> |
| 4 | pkgname=perl-code-tidyall-plugin-sortlines-naturally |
| 5 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 6 | _pkgreal=Code-TidyAll-Plugin-SortLines-Naturally |
| 7 | pkgver=0.000003 |
| 8 | pkgrel=1 |
| 9 | pkgdesc="Sort lines of a file using Unicode::Collate::Locale" |
| 10 | url="https://metacpan.org/release/Code-TidyAll-Plugin-SortLines-Naturally/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-code-tidyall perl-moo" |
| 14 | makedepends="perl-dev perl-module-build" |
| 15 | checkdepends="perl-capture-tiny perl-file-slurper" |
| 16 | subpackages="$pkgname-doc" |
| 17 | source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Code-TidyAll-Plugin-SortLines-Naturally-$pkgver.tar.gz" |
| 18 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 19 | |
| 20 | build() { |
| 21 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 22 | perl Build.PL --installdirs=vendor |
| 23 | ./Build |
| 24 | } |
| 25 | |
| 26 | check() { |
| 27 | ./Build test |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | ./Build install --destdir="$pkgdir" |
| 32 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | 532d7235179fde5426cd927de3562b5836036b80693a0e7120573a07016de601860a5b7988e4f11f302b678714eb4b38911b8a1ec6335ef1fba78ff7272b386a Code-TidyAll-Plugin-SortLines-Naturally-0.000003.tar.gz |
| 37 | " |