blob: dce796446a96bbd8380316a7b47b28b0cb18b2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"
|