summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-25 17:08:13 -0700
committerDan Theisen <djt@hxx.in>2018-09-25 17:21:26 -0700
commit59c8ca9ed304d5036e024a607055cbe700516529 (patch)
tree485fd6606dc01ed4bcdf83de453c74b9b9d06bb9
parenta809ba4f15bd6a204473974095244301fa873c20 (diff)
downloadpackages-59c8ca9ed304d5036e024a607055cbe700516529.tar.gz
packages-59c8ca9ed304d5036e024a607055cbe700516529.tar.bz2
packages-59c8ca9ed304d5036e024a607055cbe700516529.tar.xz
packages-59c8ca9ed304d5036e024a607055cbe700516529.zip
user/perl-text-diff: new package
-rw-r--r--user/perl-text-diff/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-text-diff/APKBUILD b/user/perl-text-diff/APKBUILD
new file mode 100644
index 000000000..303106e54
--- /dev/null
+++ b/user/perl-text-diff/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-text-diff
+pkgver=1.45
+pkgrel=0
+pkgdesc="Perform diffs on files and record sets"
+url="https://metacpan.org/pod/Text::Diff"
+arch="noarch"
+license="GPL-2.0+ OR Artistic-1.0-Perl"
+depends="perl perl-algorithm-diff"
+makedepends="perl-dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Text-Diff-$pkgver.tar.gz"
+builddir="$srcdir/Text-Diff-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="569370707bf30d60d12df6389594bcdba050805005916ac3a485c2226e528891b0af9ecfcc13d20e4f377d2c36a7ff67e51de5ca409c647aa8a36b7a87eab367 Text-Diff-1.45.tar.gz"