From 3a2cd04a7c93b488d58f512832714fcec3f23208 Mon Sep 17 00:00:00 2001 From: Isaac David Date: Wed, 24 May 2017 22:15:16 -0500 Subject: add package perl-algorithm-diff to [libre] Bug #1320 -> https://labs.parabola.nu/issues/1320 --- libre/perl-algorithm-diff/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libre/perl-algorithm-diff/PKGBUILD diff --git a/libre/perl-algorithm-diff/PKGBUILD b/libre/perl-algorithm-diff/PKGBUILD new file mode 100644 index 000000000..25c16dbed --- /dev/null +++ b/libre/perl-algorithm-diff/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer (Arch): Sergej Pupykin +# Maintainer (Arch): Charles Mauch +# Maintainer: Isaac David + +pkgname=perl-algorithm-diff +pkgver=1.1903 +pkgrel=1.parabola1 +pkgdesc="Perl/CPAN Module Algorithm::Diff : Diff also Longest Common Subsequence, without unlicensed files" +arch=("any") +url="http://search.cpan.org/dist/Algorithm-Diff" +license=("GPL" "PerlArtistic") +depends=(perl) +mksource=("http://search.cpan.org/CPAN/authors/id/T/TY/TYEMQ/Algorithm-Diff-${pkgver}.tar.gz") +mksha256sums=('30e84ac4b31d40b66293f7b1221331c5a50561a39d580d85004d9c1fff991751') +source=("https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.gz"{,.sig}) +sha256sums=('0b4884854df245ac861e082915bcc21b5c501e4d4e32910bdc0284eaf0e4d02b' + 'SKIP') +validpgpkeys=('38D33EF29A7691134357648733466E12EC7BA943') # Isaac David + +mksource() { + rm -rv "Algorithm-Diff-${pkgver}"/{htmldiff.pl,lib/Algorithm/DiffOld.pm,t} +} + +build() { + cd "${srcdir}/Algorithm-Diff-${pkgver}" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd "${srcdir}/Algorithm-Diff-${pkgver}" + make pure_install doc_install DESTDIR="$pkgdir" + find "$pkgdir" -name '.packlist' -delete + find "$pkgdir" -name '*.pod' -delete +} -- cgit v1.2.3