diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-09 10:04:55 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-09 10:04:55 (GMT) |
commit | ba501727cc56811ca69c9a0e6dd85d5672283afe (patch) | |
tree | 44e880d0974137442d21a58eed3d06a759a16665 /abs/core/perl_modules/perl-image-size | |
parent | 8720cccf43372eed23e1c719c50081e4a98a9c38 (diff) | |
parent | 46e24a7b6f9d7f47ba12d1992ef2289bd184a97e (diff) | |
download | linhes_pkgbuild-ba501727cc56811ca69c9a0e6dd85d5672283afe.zip linhes_pkgbuild-ba501727cc56811ca69c9a0e6dd85d5672283afe.tar.gz linhes_pkgbuild-ba501727cc56811ca69c9a0e6dd85d5672283afe.tar.bz2 |
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/perl_modules/perl-image-size')
-rw-r--r-- | abs/core/perl_modules/perl-image-size/PKGBUILD | 47 |
1 files 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 <cmauch@gmail.com> +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: <francois . archlinux . org> +# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com> +# Contributor: Igor Scabini <furester@gmail.com> + 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 } |