aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-algorithm-diff-xs/APKBUILD
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2019-03-23 23:55:16 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-03-26 11:44:22 +0000
commitd54504f8169da1e0544a6f63856dd40d26afb3a1 (patch)
treea41bafbad2e2de8b6d79710b1d1c47631244ff4c /testing/perl-algorithm-diff-xs/APKBUILD
parent6be3b42f00906f11e3efe6b2966f1aa923641248 (diff)
downloadaports-d54504f8169da1e0544a6f63856dd40d26afb3a1.tar.bz2
aports-d54504f8169da1e0544a6f63856dd40d26afb3a1.tar.xz
testing/perl-algorithm-diff-xs: new aport
Diffstat (limited to 'testing/perl-algorithm-diff-xs/APKBUILD')
-rw-r--r--testing/perl-algorithm-diff-xs/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/perl-algorithm-diff-xs/APKBUILD b/testing/perl-algorithm-diff-xs/APKBUILD
new file mode 100644
index 0000000000..e83c600c32
--- /dev/null
+++ b/testing/perl-algorithm-diff-xs/APKBUILD
@@ -0,0 +1,38 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-algorithm-diff-xs
+_pkgreal=Algorithm-Diff-XS
+pkgver=0.04
+pkgrel=0
+pkgdesc="Algorithm::Diff with XS core loop"
+url="https://metacpan.org/release/Algorithm-Diff-XS/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends="perl-algorithm-diff"
+depends="$cpandepends"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Algorithm-Diff-XS-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="65f2e08129b90e61c3e90156ee3a7683268d86896599b68ca401ed6a93685933f88a40442b7328b47b4ad0f0c4a407e472175586a5497cd7026e4448d4f116f1 Algorithm-Diff-XS-0.04.tar.gz"