# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'perl-digest-perl-md5'
setvar _pkgreal = 'Digest-Perl-MD5'
setvar pkgver = '1.9'
setvar pkgrel = '0'
setvar pkgdesc = ""Perl Implementation of Rivest's MD5 algorithm""
setvar url = ""http://search.cpan.org/dist/Digest-Perl-MD5/""
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/D/DE/DELTA/$_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 = ""41f1160e11ce0d99021fc8d6c725fa3d  Digest-Perl-MD5-1.9.tar.gz""
setvar sha256sums = ""7100cba1710f45fb0e907d8b1a7bd8caef35c64acd31d7f225aff5affeecd9b1  Digest-Perl-MD5-1.9.tar.gz""
setvar sha512sums = ""015a1f046b85b5b89c1b44073d60116d483332cd667cb7230222df9651b7da837a532991e91848ff0b65f171b8870c2c4bda651da4ca54ea75d062ba6a55b525  Digest-Perl-MD5-1.9.tar.gz""