aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mail-spamassassin/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-06-15 15:04:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-15 20:07:17 +0000
commit6d9f95199d0493aa5b893ccc665c0f1a37d51e14 (patch)
tree0834d6fcd328e3ddf184982107c5e1d06a164ea5 /main/perl-mail-spamassassin/APKBUILD
parent4d288af58bbcaac4043611d2dcfd057ff22ba7c9 (diff)
downloadaports-6d9f95199d0493aa5b893ccc665c0f1a37d51e14.tar.bz2
aports-6d9f95199d0493aa5b893ccc665c0f1a37d51e14.tar.xz
main/perl-mail-spamassassin: rebuild against perl 5.26
Diffstat (limited to 'main/perl-mail-spamassassin/APKBUILD')
-rw-r--r--main/perl-mail-spamassassin/APKBUILD24
1 files changed, 10 insertions, 14 deletions
diff --git a/main/perl-mail-spamassassin/APKBUILD b/main/perl-mail-spamassassin/APKBUILD
index d3f7e3021f..6cdb0d9e54 100644
--- a/main/perl-mail-spamassassin/APKBUILD
+++ b/main/perl-mail-spamassassin/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-mail-spamassassin
_pkgreal=Mail-SpamAssassin
pkgver=3.4.1
-pkgrel=1
+pkgrel=2
pkgdesc="SpamAssassin is an extensible email filter which is used to identify spam"
url="http://search.cpan.org/dist/Mail-SpamAssassin/"
arch="all"
@@ -14,27 +14,23 @@ 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"
-_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
-}
+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"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-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"
+sha512sums="6a074f1a4177e1969cef575fe3b1b844d27c813d48fe1e07a46f56ffa728fc780897597d00f11acb269317a6308f284f0dee544d504da874d93b0549d094a6a3 Mail-SpamAssassin-3.4.1.tar.gz
+66a6daa7e9898864497e7d8e17efc6094aabc5a9a94afbc7da08acf4cf2430fad2cb0128b8db4be637f5dcabe3fa9f03490f9d7cbba3c1cc02b7824f63cd0965 Mail-SpamAssassin.patch"