| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-hash-ordered |
| 5 | pkgver=0.014 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=Hash-Ordered |
| 9 | pkgdesc="Fast, pure-Perl ordered hash class" |
| 10 | url="https://metacpan.org/release/Hash-Ordered/" |
| 11 | arch="noarch" |
| 12 | license="Apache-2.0" |
| 13 | depends="perl" |
| 14 | checkdepends="perl-test-deep perl-test-failwarnings perl-test-fatal" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Hash-Ordered-$pkgver.tar.gz" |
| 17 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 18 | |
| 19 | build() { |
| 20 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 21 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 22 | INSTALLDIRS=vendor \ |
| 23 | NO_PACKLIST=1 \ |
| 24 | NO_PERLLOCAL=1 |
| 25 | make |
| 26 | } |
| 27 | |
| 28 | check() { |
| 29 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 30 | make test |
| 31 | } |
| 32 | |
| 33 | package() { |
| 34 | make DESTDIR="$pkgdir" install |
| 35 | } |
| 36 | |
| 37 | doc() { |
| 38 | local file; find "$pkgdir" -name "*.pod" | while read -r file; do |
| 39 | amove "${file#"$pkgdir"}" |
| 40 | done |
| 41 | default_doc |
| 42 | } |
| 43 | |
| 44 | sha512sums=" |
| 45 | 077abdd3b536f5b31d913c2c0849e1775f91daa5ca83734671088ab06d9fe11cf80f743e32c5db1bf70a874248337c3bebeafceef1a6e38078f92966474480c3 Hash-Ordered-0.014.tar.gz |
| 46 | " |