diff options
-rw-r--r-- | main/perl-mail-spamassassin/APKBUILD | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/main/perl-mail-spamassassin/APKBUILD b/main/perl-mail-spamassassin/APKBUILD index ac7b7f9bf8..0f754b7a05 100644 --- a/main/perl-mail-spamassassin/APKBUILD +++ b/main/perl-mail-spamassassin/APKBUILD @@ -1,31 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-mail-spamassassin -_realname=Mail-SpamAssassin -pkgver=3.4.0 +_pkgreal=Mail-SpamAssassin +pkgver=3.4.1 pkgrel=0 -pkgdesc="Spam detector and markup engine" +pkgdesc="SpamAssassin is an extensible email filter which is used to identify spam" url="http://search.cpan.org/dist/Mail-SpamAssassin/" arch="all" -license="unknown" -depends="perl perl-html-parser perl-net-dns perl-db_file - perl-mail-spf razor" -makedepends="perl-dev zlib-dev" -install= +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://www.cpan.org/authors/id/K/KM/KMCGRAIL/SpamAssassin/Mail-SpamAssassin-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/K/KM/KMCGRAIL/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} build() { - cd "$srcdir/$_realname-$pkgver" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } package() { - cd "$srcdir/$_realname-$pkgver" - make DESTDIR="$pkgdir" install + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="5d0b50cee3bfa905cca35c33296c8c2a Mail-SpamAssassin-3.4.0.tar.gz" -sha256sums="244914c30976844878a7f129fd503eb40986c68a3800f416c3a68b14507c0a64 Mail-SpamAssassin-3.4.0.tar.gz" -sha512sums="c5f85c9e661018c6306550f10ae609a0e71ba476e9ee88616dc6b880fc6c09ed774dded27c70ff7e67cc2e9f684c5e2a6a19f5d7db1a8168441b9cb2975fc41e Mail-SpamAssassin-3.4.0.tar.gz" +md5sums="76eca1f38c11635d319e62c26d5b034b Mail-SpamAssassin-3.4.1.tar.gz" +sha256sums="9b7a95a594cdca4f265707364478b57813b82a0ec7e520d9bc818bfbcafdd726 Mail-SpamAssassin-3.4.1.tar.gz" +sha512sums="6a074f1a4177e1969cef575fe3b1b844d27c813d48fe1e07a46f56ffa728fc780897597d00f11acb269317a6308f284f0dee544d504da874d93b0549d094a6a3 Mail-SpamAssassin-3.4.1.tar.gz" |