[arch-commits] Commit in perl-net-dns/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Sat Mar 17 16:08:01 EDT 2012


    Date: Saturday, March 17, 2012 @ 16:08:01
  Author: eric
Revision: 153679

upgpkg: perl-net-dns 0.68-1

Upstream update, Add check function

Modified:
  perl-net-dns/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-17 19:56:29 UTC (rev 153678)
+++ PKGBUILD	2012-03-17 20:08:01 UTC (rev 153679)
@@ -4,30 +4,35 @@
 
 pkgname=perl-net-dns
 _realname=Net-DNS
-pkgver=0.66
-pkgrel=4
+pkgver=0.68
+pkgrel=1
 pkgdesc="Perl Module: Interface to the DNS resolver."
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('PerlArtistic')
 url="http://search.cpan.org/dist/${_realname}/"
 depends=('perl-digest-hmac' 'perl-net-ip' 'perl>=5.10.0')
+options=('!emptydirs')
 source=(http://www.cpan.org/authors/id/O/OL/OLAF/${_realname}-$pkgver.tar.gz)
-options=(!emptydirs)
+md5sums=('05c0f6955747758bb5c9578d9bc6c3a5')
 
 build() {
-  cd $srcdir/${_realname}-${pkgver}
+  cd "$srcdir/${_realname}-${pkgver}"
   # install module in vendor directories.
   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
+check() {
+  cd "$srcdir/${_realname}-${pkgver}"
+  make test
+}
+
 package() {
-  cd $srcdir/${_realname}-${pkgver}
-  make install DESTDIR=${pkgdir}
+  cd "$srcdir/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
 
   # remove perllocal.pod and .packlist
-  find ${pkgdir} -name perllocal.pod -delete
-  find ${pkgdir} -name .packlist -delete
+  find "${pkgdir}" -name perllocal.pod -delete
+  find "${pkgdir}" -name .packlist -delete
 }
 # vim: ts=2 sw=2 et ft=sh
-md5sums=('1635d876324e3c2f6e277d5778bfe94c')



More information about the arch-commits mailing list