| 1 | # Automatically generated by apkbuild-cpan, template 3 |
| 2 | # Contributor: Francesco Colista <[email protected]> |
| 3 | # Maintainer: Francesco Colista <[email protected]> |
| 4 | pkgname=perl-algorithm-diff |
| 5 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 6 | _pkgreal=Algorithm-Diff |
| 7 | pkgver=1.201 |
| 8 | pkgrel=1 |
| 9 | pkgdesc="Compute 'intelligent' differences between two files / lists" |
| 10 | url="https://metacpan.org/release/Algorithm-Diff/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl" |
| 14 | subpackages="$pkgname-doc" |
| 15 | source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Algorithm-Diff-$pkgver.tar.gz" |
| 16 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 17 | |
| 18 | build() { |
| 19 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 20 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor |
| 21 | make |
| 22 | } |
| 23 | |
| 24 | check() { |
| 25 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 26 | make test |
| 27 | } |
| 28 | |
| 29 | package() { |
| 30 | make DESTDIR="$pkgdir" install |
| 31 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 32 | } |
| 33 | |
| 34 | sha512sums="b22b55f4e45748da0e8aca556dc2155ef2dbcfe42ac5cbe4aa59e4cc13c95a141e6324a9ab0acd7fbc3d97e761e0778176df0f7e726af837a7b7d075106ad8d0 Algorithm-Diff-1.201.tar.gz" |