summaryrefslogtreecommitdiff
path: root/libre/perl-algorithm-diff/PKGBUILD
diff options
context:
space:
mode:
authorIsaac David <isacdaavid@isacdaavid.info>2017-05-24 22:15:16 -0500
committerIsaac David <isacdaavid@isacdaavid.info>2017-05-24 22:15:16 -0500
commit3a2cd04a7c93b488d58f512832714fcec3f23208 (patch)
treece39fcb5f14a7b871c80e47ae50b88df7b49e6be /libre/perl-algorithm-diff/PKGBUILD
parent42b3208221b2c5b191733699aeb31a5a36b3722d (diff)
downloadabslibre-3a2cd04a7c93b488d58f512832714fcec3f23208.tar.gz
abslibre-3a2cd04a7c93b488d58f512832714fcec3f23208.tar.bz2
abslibre-3a2cd04a7c93b488d58f512832714fcec3f23208.zip
add package perl-algorithm-diff to [libre]
Bug #1320 -> https://labs.parabola.nu/issues/1320
Diffstat (limited to 'libre/perl-algorithm-diff/PKGBUILD')
-rw-r--r--libre/perl-algorithm-diff/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
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 <pupykin.s+arch@gmail.com>
+# Maintainer (Arch): Charles Mauch <cmauch@gmail.com>
+# Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
+
+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 <isacdaavid@isacdaavid@dot@info>
+
+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
+}