| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Sergey Safarov <[email protected]> |
| 3 | # Contributor: Celeste <[email protected]> |
| 4 | # Maintainer: |
| 5 | pkgname=perl-ref-util-xs |
| 6 | pkgver=0.117 |
| 7 | pkgrel=11 |
| 8 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 9 | _pkgreal=Ref-Util-XS |
| 10 | pkgdesc="XS implementation for Ref::Util" |
| 11 | url="https://metacpan.org/release/Ref-Util-XS/" |
| 12 | arch="all" |
| 13 | license="MIT" |
| 14 | depends="perl" |
| 15 | makedepends="perl-dev" |
| 16 | subpackages="$pkgname-doc" |
| 17 | source="https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Ref-Util-XS-$pkgver.tar.gz" |
| 18 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 19 | |
| 20 | build() { |
| 21 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 22 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 23 | INSTALLDIRS=vendor \ |
| 24 | NO_PACKLIST=1 \ |
| 25 | NO_PERLLOCAL=1 |
| 26 | make |
| 27 | } |
| 28 | |
| 29 | check() { |
| 30 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 31 | make test |
| 32 | } |
| 33 | |
| 34 | package() { |
| 35 | make DESTDIR="$pkgdir" install |
| 36 | } |
| 37 | |
| 38 | sha512sums=" |
| 39 | 5ebcd1bfd6c4b94c17f24c890342d4fba74a7a7c09b3d338208cd5d3fe6b6dd2c504c86ab555c27781b5ede2633d012bb7df819029ce89bec6bc269e21d567a0 Ref-Util-XS-0.117.tar.gz |
| 40 | " |