# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'perl-devel-leak'
setvar _pkgreal = 'Devel-Leak'
setvar pkgver = '0.03'
setvar pkgrel = '4'
setvar pkgdesc = ""Utility for looking for perl objects that are not reclaimed""
setvar url = ""http://search.cpan.org/dist/Devel-Leak/""
setvar arch = ""all""
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/N/NI/NI-S/$_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 = ""9ee2cf88bd1dbc6091e38ef4597b54bb  Devel-Leak-0.03.tar.gz""
setvar sha256sums = ""6f42c34f11e2b4e3ea2e0e6b9416a88a685add447910caf4d91dd2c178177252  Devel-Leak-0.03.tar.gz""
setvar sha512sums = ""177f64b87fa6ab08b93f7c5bfcbaf4421e8431bf795976a0a7efa0120828984fed29a2bc12918e5bea9ea3edccf6316ba8daf704f349aece84b45bdd11f57707  Devel-Leak-0.03.tar.gz""