# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Sergey Safarov pkgname=perl-ref-util-xs _pkgreal=Ref-Util-XS pkgver=0.117 pkgrel=1 pkgdesc="XS implementation for Ref::Util" url="http://search.cpan.org/dist/Ref-Util-XS/" arch="all" license="MIT" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="5ebcd1bfd6c4b94c17f24c890342d4fba74a7a7c09b3d338208cd5d3fe6b6dd2c504c86ab555c27781b5ede2633d012bb7df819029ce89bec6bc269e21d567a0 Ref-Util-XS-0.117.tar.gz"