# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'perl-cpan-meta-check'
setvar _pkgreal = 'CPAN-Meta-Check'
setvar pkgver = '0.014'
setvar pkgrel = '0'
setvar pkgdesc = ""Verify requirements in a CPAN::Meta object""
setvar url = ""http://search.cpan.org/dist/CPAN-Meta-Check/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = """"
setvar cpanmakedepends = ""perl-test-deep ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz""
setvar builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	default_prepare || return 1

	cd $builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make && make test
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install || return 1
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar md5sums = ""ccd4448a7b08e1e3ef6f475030b282c9  CPAN-Meta-Check-0.014.tar.gz""
setvar sha256sums = ""28a0572bfc1c0678d9ce7da48cf521097ada230f96eb3d063fcbae1cfe6a351f  CPAN-Meta-Check-0.014.tar.gz""
setvar sha512sums = ""a10af09a7ce771ca3983adea8053d141750fd09849609a28e7f973831fd3a3ece55281841aec93c099154bb59135986da4983bf612ae4e956c45dbb3f2770f5e  CPAN-Meta-Check-0.014.tar.gz""