[arch-commits] Commit in perl-yaml-syck/trunk (PKGBUILD)

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


    Date: Saturday, March 17, 2012 @ 16:25:59
  Author: eric
Revision: 153682

upgpkg: perl-yaml-syck 1.20-1

Upstream update, Add check function, Update source url

Modified:
  perl-yaml-syck/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-17 20:18:36 UTC (rev 153681)
+++ PKGBUILD	2012-03-17 20:25:59 UTC (rev 153682)
@@ -4,34 +4,38 @@
 
 pkgname=perl-yaml-syck
 _realname=YAML-Syck
-pkgver=1.17
-pkgrel=2
+pkgver=1.20
+pkgrel=1
 pkgdesc="Fast, lightweight YAML loader and dumper"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://search.cpan.org/dist/${_realname}/"
 depends=('perl>=5.10.0')
 options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/A/AV/AVAR/${_realname}-$pkgver.tar.gz)
-md5sums=('f788529ad4b2c2fd037ccdfd5e7a88ab')
+source=(http://www.cpan.org/authors/id/T/TO/TODDR/${_realname}-$pkgver.tar.gz)
+md5sums=('8f6d04ee5817b8479e1234264a8d458d')
 
 build() {
-  cd  ${srcdir}/${_realname}-$pkgver
+  cd "${srcdir}/${_realname}-$pkgver"
 
   # install module in vendor directories.
   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
 
   # license.
-  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
 }



More information about the arch-commits mailing list