# Automatically generated by apkbuild-cpan, template 1 # Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-mail-spamassassin _pkgreal=Mail-SpamAssassin pkgver=3.4.1 pkgrel=3 pkgdesc="SpamAssassin is an extensible email filter which is used to identify spam" url="http://search.cpan.org/dist/Mail-SpamAssassin/" arch="all" license="Apache-2.0" cpandepends="perl-mail-dkim perl-netaddr-ip perl-digest-sha1 perl-html-parser perl-net-dns" cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/K/KM/KMCGRAIL/SpamAssassin/$_pkgreal-$pkgver.tar.gz Mail-SpamAssassin.patch " builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="6a074f1a4177e1969cef575fe3b1b844d27c813d48fe1e07a46f56ffa728fc780897597d00f11acb269317a6308f284f0dee544d504da874d93b0549d094a6a3 Mail-SpamAssassin-3.4.1.tar.gz 66a6daa7e9898864497e7d8e17efc6094aabc5a9a94afbc7da08acf4cf2430fad2cb0128b8db4be637f5dcabe3fa9f03490f9d7cbba3c1cc02b7824f63cd0965 Mail-SpamAssassin.patch"