[arch-commits] Commit in perl-mail-spf/trunk (PKGBUILD)

Kevin Piché kevin at archlinux.org
Sat Jan 1 22:48:57 EST 2011


    Date: Saturday, January 1, 2011 @ 22:48:57
  Author: kevin
Revision: 104383

upgpkg: perl-mail-spf 2.007-2
Built for perl 5.12.2.  Changed arch to any

Modified:
  perl-mail-spf/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-01-02 03:30:02 UTC (rev 104382)
+++ PKGBUILD	2011-01-02 03:48:57 UTC (rev 104383)
@@ -6,11 +6,12 @@
 pkgname=perl-mail-spf
 _realname=Mail-SPF
 pkgver=2.007
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl module that provides SPF support"
-arch=(i686 x86_64)
+arch=(any)
 license=('custom')
 url="http://search.cpan.org/dist/${_realname}/"
+# Used for testing only.
 makedepends=('perl-net-dns-resolver-programmable')
 depends=('perl-error' 'perl-netaddr-ip' 'perl-uri' 'perl-net-dns'
 'perl>=5.10.0')
@@ -21,11 +22,17 @@
 
 build() {
   cd ${srcdir}/${_realname}-v${pkgver}
-  perl Makefile.PL INSTALLDIRS=vendor || return 1
-  make  || return 1
-  make DESTDIR=${pkgdir} install || return 1
+  # Fix required perl-net-dns-resolver-programmable version
+  sed "s/=> 'v0.002.1',/=> 0,/" -i Build.PL
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+  make test
+}
+
+package() {
+  cd ${srcdir}/${_realname}-v${pkgver}
+  make DESTDIR=${pkgdir} install
   find ${pkgdir} -name '.packlist' -delete
   find ${pkgdir} -name 'perllocal.pod' -delete
-
   install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }



More information about the arch-commits mailing list