# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'perl-email-abstract'
setvar _pkgreal = 'Email-Abstract'
setvar pkgver = '3.008'
setvar pkgrel = '0'
setvar pkgdesc = ""unknown""
setvar url = ""http://search.cpan.org/dist/Email-Abstract/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = ""perl-mro-compat perl-email-simple perl-module-pluggable""
setvar cpanmakedepends = """"
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_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 = ""dbfc069ffb5f8c96989bf62f0df5d756  Email-Abstract-3.008.tar.gz""
setvar sha256sums = ""fc7169acb6c43df7f005e7ef6ad08ee8ca6eb6796b5d1604593c997337cc8240  Email-Abstract-3.008.tar.gz""
setvar sha512sums = ""efead64612562fb9d644fa830b2f29e0701af0f3ddeb118992badff7c7a45cb569ad4644a7b226cc625cdabfb3f5db155284eb68042928265bfc5c230f4bf40a  Email-Abstract-3.008.tar.gz""