| 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-uniquelines |
| 5 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 6 | _pkgreal=Code-TidyAll-Plugin-UniqueLines |
| 7 | pkgver=0.000003 |
| 8 | pkgrel=1 |
| 9 | pkgdesc="Remove duplicate lines from a file" |
| 10 | url="https://metacpan.org/release/Code-TidyAll-Plugin-UniqueLines/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-moo perl-code-tidyall" |
| 14 | makedepends="perl-dev" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Code-TidyAll-Plugin-UniqueLines-$pkgver.tar.gz" |
| 17 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 18 | |
| 19 | build() { |
| 20 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 21 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor |
| 22 | make |
| 23 | } |
| 24 | |
| 25 | check() { |
| 26 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 27 | make test |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | make DESTDIR="$pkgdir" install |
| 32 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | ca8a45acdccf8121245c504675619f35160be2ec3593a5ca09253635c219ac5827ef3999029381c9cf173141c9cbc75b34ec02f617a4a126e2c2e80feafa7bd3 Code-TidyAll-Plugin-UniqueLines-0.000003.tar.gz |
| 37 | " |