diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-14 12:46:23 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-14 14:12:39 +0000 |
commit | 143477dd2ba1e4a686a6555d11ee4c704fa9b424 (patch) | |
tree | f04e07066e120f5645e71ee98bfbbfa923dc7052 /main/perl-mail-dkim/APKBUILD | |
parent | 3260e093f52d253e0ede1cac0e01c8901d27b977 (diff) | |
download | aports-143477dd2ba1e4a686a6555d11ee4c704fa9b424.tar.bz2 aports-143477dd2ba1e4a686a6555d11ee4c704fa9b424.tar.xz |
main/perl-mail-dkim: upgrade to 0.41, add check(), modernize APKBUILD
Diffstat (limited to 'main/perl-mail-dkim/APKBUILD')
-rw-r--r-- | main/perl-mail-dkim/APKBUILD | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/main/perl-mail-dkim/APKBUILD b/main/perl-mail-dkim/APKBUILD index 6611c15bc7..4bcf577e63 100644 --- a/main/perl-mail-dkim/APKBUILD +++ b/main/perl-mail-dkim/APKBUILD @@ -1,32 +1,39 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-mail-dkim _realname=Mail-DKIM -pkgver=0.40 -pkgrel=1 +pkgver=0.41 +pkgrel=0 pkgdesc="Signs/verifies Internet mail with DKIM/DomainKey signatures" -url="http://search.cpan.org/~jaslong/Mail-DKIM-0.36/" +url="http://search.cpan.org/~jaslong/Mail-DKIM-$pkgver/" arch="noarch" license="unknown" depends="perl perl-net-dns perl-net-ip perl-mailtools perl-crypt-openssl-rsa" makedepends="perl-dev" -install= subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/J/JA/JASLONG/$_realname-$pkgver.tar.gz" - -build() { - cd "$srcdir/$_realname-$pkgver" +source="http://search.cpan.org/CPAN/authors/id/M/MB/MBRADSHAW/$_realname-$pkgver.tar.gz" +builddir="$srcdir/$_realname-$pkgver" +prepare() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 +} + +build() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make || return 1 } package() { - cd "$srcdir/$_realname-$pkgver" + cd "$builddir" make DESTDIR="$pkgdir" install - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + make test } -md5sums="9ceb8a0397aff83928e7a9760b1b190f Mail-DKIM-0.40.tar.gz" -sha256sums="3c5ea0c3a2028a5a2c3b64bbcd6bd9de6a5fa5ee4e16046dd8875c4796aaa6f1 Mail-DKIM-0.40.tar.gz" -sha512sums="27f10a96f70e56e69f55e5077fb93f29f66d8e7a21846c8fb518403af915f85ac06f0968e6002fa2dc7090746e14a5a7bd973e46bb1d52e4200c3c120cd2e924 Mail-DKIM-0.40.tar.gz" +sha512sums="f16a818b058b405ee3ffc0962091e7d47268321b35dcd6ca42e1e37ed1ad5b1b3c1e32655f6f0643e046c53f1247a4b9bb9c0202eca7adce4f14d9b38b414f2e Mail-DKIM-0.41.tar.gz" |