aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/perl-digest-jhash/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/perl-digest-jhash/APKBUILD b/community/perl-digest-jhash/APKBUILD
new file mode 100644
index 0000000000..dce796446a
--- /dev/null
+++ b/community/perl-digest-jhash/APKBUILD
@@ -0,0 +1,34 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-digest-jhash
+_pkgreal=Digest-JHash
+pkgver=0.10
+pkgrel=0
+pkgdesc="Perl extension for 32 bit Jenkins Hashing Algorithm"
+url="https://metacpan.org/release/Digest-JHash/"
+arch="all"
+license="Artistic-2.0"
+depends="perl"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Digest-JHash-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="901b5c54c3dc3108829907011f3fc6936f2d1d887404cb91e294c09f83dca50a31270cb5b87aeadaaad03d0764f018f90350179ae773e97ffa48f9761efd1b71 Digest-JHash-0.10.tar.gz"