summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2011-07-09 00:18:11 (GMT)
committerBritney Fransen <brfransen@gmail.com>2011-07-09 00:18:11 (GMT)
commit46e24a7b6f9d7f47ba12d1992ef2289bd184a97e (patch)
treec7786392ddfc00c3e3fe1fbf6c3cfabf9f2e7601 /abs
parent30416b576d801cd695297613ff8e6e110ee01c26 (diff)
downloadlinhes_pkgbuild-46e24a7b6f9d7f47ba12d1992ef2289bd184a97e.zip
linhes_pkgbuild-46e24a7b6f9d7f47ba12d1992ef2289bd184a97e.tar.gz
linhes_pkgbuild-46e24a7b6f9d7f47ba12d1992ef2289bd184a97e.tar.bz2
perl-image-size: update to latest
Diffstat (limited to 'abs')
-rw-r--r--abs/core/perl_modules/perl-image-size/PKGBUILD47
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
}