From 46e24a7b6f9d7f47ba12d1992ef2289bd184a97e Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 8 Jul 2011 19:18:11 -0500 Subject: perl-image-size: update to latest --- abs/core/perl_modules/perl-image-size/PKGBUILD | 47 +++++++++++++++----------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/abs/core/perl_modules/perl-image-size/PKGBUILD b/abs/core/perl_modules/perl-image-size/PKGBUILD index 4b3d0d4..784d1ce 100644 --- a/abs/core/perl_modules/perl-image-size/PKGBUILD +++ b/abs/core/perl_modules/perl-image-size/PKGBUILD @@ -1,24 +1,31 @@ -# This PKGBUILD was autocreated. See http://xtermin.us/archperl/ for details -# Maintainer: Charles Mauch +# $Id$ +# Maintainer: Sergej Pupykin +# Contributor: +# Contributor: Lukas Jirkovsky +# Contributor: Igor Scabini + pkgname=perl-image-size -pkgver=3.1 -pkgrel=2 -pkgdesc="Perl/CPAN Module XML::Parser : Flexible fast parser with plugin styles" -arch=("i686" "x86_64") -url="http://search.cpan.org/MSERGEANT/XML-Parser" -license=("GPL" "Artistic") -source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJRAY/Image-Size-3.1.tar.gz") +_cpanname=Image-Size +pkgver=3.230 +pkgrel=1 +pkgdesc="Read the dimensions of an image in several popular formats" +arch=(any) +url="http://search.cpan.org/dist/${_cpanname}/" +license=('LGPL' 'PerlArtistic') +depends=('perl') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJRAY/${_cpanname}-$pkgver.tar.gz") +md5sums=('17b5cc123a522aa3c4ca842094d0c0ba') build() { - cd $startdir/src/Image-Size-3.1 - eval `perl -V:archname` - /usr/bin/perl Makefile.PL \ - INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \ - INSTALLSITELIB=/usr/lib/perl5/site_perl/current \ - INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} || return 1 - make || return 1 - make DESTDIR=$startdir/pkg install || return 1 - /usr/bin/find $startdir/pkg -name '.packlist' -exec rm '{}' \; && \ - /usr/bin/find $startdir/pkg -name 'perllocal.pod' -exec rm '{}' \; && \ - /usr/bin/find $startdir/pkg -depth -type d -empty -exec rmdir '{}' \; + 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 } -- cgit v0.12