PKGBUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Maintainer (arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
  2. # Maintainer (arch): Charles Mauch <cmauch@gmail.com>
  3. # Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  4. pkgname=perl-algorithm-diff
  5. pkgver=1.1903
  6. pkgrel=5
  7. pkgrel+=.parabola1
  8. pkgdesc="Perl/CPAN Module Algorithm::Diff : Diff also Longest Common Subsequence"
  9. pkgdesc+=", without unlicensed files"
  10. arch=("any")
  11. url="https://search.cpan.org/dist/Algorithm-Diff"
  12. license=("GPL" "PerlArtistic")
  13. depends=(perl)
  14. source=("https://search.cpan.org/CPAN/authors/id/T/TY/TYEMQ/Algorithm-Diff-${pkgver}.tar.gz")
  15. sha256sums=('30e84ac4b31d40b66293f7b1221331c5a50561a39d580d85004d9c1fff991751')
  16. prepare() {
  17. rm -rv "Algorithm-Diff-${pkgver}"/{htmldiff.pl,lib/Algorithm/DiffOld.pm,t}
  18. }
  19. build() {
  20. cd "$srcdir"/Algorithm-Diff-$pkgver
  21. PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  22. make
  23. }
  24. package() {
  25. cd "$srcdir"/Algorithm-Diff-$pkgver
  26. make pure_install doc_install DESTDIR="$pkgdir"
  27. find "$pkgdir" -name '.packlist' -delete
  28. find "$pkgdir" -name '*.pod' -delete
  29. }