blob: 4b3d0d4f5e8c3fcb88ba41ad668575403d2b5479 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# This PKGBUILD was autocreated. See http://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@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")
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 '{}' \;
}
|