[arch-commits] Commit in perl-html-template/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Mon Oct 17 23:07:15 EDT 2011


    Date: Monday, October 17, 2011 @ 23:07:15
  Author: eric
Revision: 140677

upgpkg: perl-html-template 2.10-1

Upstream update

Modified:
  perl-html-template/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-18 02:58:14 UTC (rev 140676)
+++ PKGBUILD	2011-10-18 03:07:15 UTC (rev 140677)
@@ -5,20 +5,26 @@
 
 pkgname=perl-html-template
 _cpanname=HTML-Template
-pkgver=2.9
-pkgrel=4
+pkgver=2.10
+pkgrel=1
 pkgdesc="A simple HTML templating system"
-arch=any
+arch=('any')
 url="http://search.cpan.org/dist/HTML-Template"
 license=("GPL" "PerlArtistic")
-source=("http://www.cpan.org/authors/id/S/SA/SAMTREGAR/${_cpanname}-${pkgver}.tar.gz")
-md5sums=('cbf88a486b36284be55765ac7357c187')
+depends=('perl')
+options=('!emptydirs')
+source=("http://www.cpan.org/authors/id/W/WO/WONKO/${_cpanname}-${pkgver}.tar.gz")
+md5sums=('49537aa239ab090698b9e1a0b0be7412')
 
 build() {
-  cd $startdir/src/${_cpanname}-${pkgver}
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
-  make || return 1
-  make install DESTDIR=$startdir/pkg || return 1
-  find $startdir/pkg -name '.packlist' -delete
-  find $startdir/pkg -name '*.pod' -delete
+  cd "${srcdir}/${_cpanname}-${pkgver}"
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  make
 }
+
+package() {
+  cd "${srcdir}/${_cpanname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+  find "${pkgdir}" -name '.packlist' -delete
+  find "${pkgdir}" -name '*.pod' -delete
+}



More information about the arch-commits mailing list