# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-algorithm-diff #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Algorithm-Diff pkgver=1.201 pkgrel=1 pkgdesc="Compute 'intelligent' differences between two files / lists" url="https://metacpan.org/release/Algorithm-Diff/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Algorithm-Diff-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="b22b55f4e45748da0e8aca556dc2155ef2dbcfe42ac5cbe4aa59e4cc13c95a141e6324a9ab0acd7fbc3d97e761e0778176df0f7e726af837a7b7d075106ad8d0 Algorithm-Diff-1.201.tar.gz"