# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'perl-mro-compat'
setvar _pkgreal = 'MRO-Compat'
setvar pkgver = '0.13'
setvar pkgrel = '0'
setvar pkgdesc = ""mro::* interface compatibility for Perls < 5.9.5""
setvar url = ""http://search.cpan.org/dist/MRO-Compat/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = """"
setvar cpanmakedepends = """"
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz""

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

proc check {
	cd $builddir
	make test
}

proc prepare {
	cd $builddir'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $builddir
	make
}

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

setvar sha512sums = ""3311c37c8fc73acaf68bae2b12315a448a87de8f756e817c967cf49b753cf218e8c762ecc44890297afd82193d71b2407060db0bc70720d228b31c0a30de10c1  MRO-Compat-0.13.tar.gz""