# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer:
setvar pkgname = 'perl-module-implementation'
setvar _pkgreal = 'Module-Implementation'
setvar pkgver = '0.09'
setvar pkgrel = '0'
setvar pkgdesc = ""Loads one of several alternate underlying implementations for a module""
setvar url = ""http://search.cpan.org/dist/Module-Implementation/""
setvar arch = ""noarch""
setvar license = ""Artistic-2""
setvar cpandepends = ""perl-try-tiny perl-module-runtime""
setvar cpanmakedepends = ""  perl-test-fatal perl-test-requires ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	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 = ""52e3fe0ca6b1eff0488d59b7aacc0667  Module-Implementation-0.09.tar.gz""
setvar sha256sums = ""c15f1a12f0c2130c9efff3c2e1afe5887b08ccd033bd132186d1e7d5087fd66d  Module-Implementation-0.09.tar.gz""
setvar sha512sums = ""049f967ba1bd8a3914968b34006030ae318d99ac629a0f34736f1c2b5392490c30aa0914e777eaefda7f0f58755d2d3363a266b90db59b53fe145ef68e1d953c  Module-Implementation-0.09.tar.gz""