[arch-commits] Commit in perl-mime-types/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Sun Jul 4 15:26:59 EDT 2010


    Date: Sunday, July 4, 2010 @ 15:26:58
  Author: eric
Revision: 84837

upgpkg: perl-mime-types 1.30-1
Upstream update, PKGBUILD clean up

Modified:
  perl-mime-types/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-07-04 18:56:22 UTC (rev 84836)
+++ PKGBUILD	2010-07-04 19:26:58 UTC (rev 84837)
@@ -4,26 +4,26 @@
 
 pkgname=perl-mime-types
 _realname=MIME-Types
-pkgver=1.29
+pkgver=1.30
 pkgrel=1
 pkgdesc="Perl/CPAN Module MIME::Types : Information and processing MIME types"
-arch=(any)
+arch=('any')
 license=('PerlArtistic')
 url="http://search.cpan.org/dist/${_realname}/"
-depends=('perl>=5.10.0')
-# Doesn't need perl-test-pod to build.
-options=(!emptydirs)
+depends=('perl')
+options=('!emptydirs')
 source=(http://www.cpan.org/authors/id/M/MA/MARKOV/${_realname}-${pkgver}.tar.gz)
-md5sums=('4944fea4b6f2be96745fde90607c43f7')
+md5sums=('65c5be4e790577e2cef998a780f0cf7c')
+sha1sums=('832b0dd51bacb689c1229d81406c85ea127c8ad7')
 
 build() {
-  cd ${srcdir}/${_realname}-${pkgver}
+  cd "${srcdir}/${_realname}-${pkgver}"
   # install module in vendor directories.
-  perl Makefile.PL INSTALLDIRS=vendor || return 1
-  make  || return 1
-  make install DESTDIR=${pkgdir} || return 1
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
 
-  # remove perllocal.pod and .packlist
-  find ${pkgdir} -name perllocal.pod -delete
-  find ${pkgdir} -name .packlist -delete
+package() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
 }



More information about the arch-commits mailing list