updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / perl-sane / PKGBUILD
blob422556f8f35d93810ba96fafd518f183d1fb3b4f
1 # CPAN Name  : Sane
2 # Contributor: Justin Davis <jrcd83@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.08
4 pkgname='perl-sane'
5 pkgver='0.03'
6 pkgrel='2'
7 pkgdesc="Perl extension for the SANE (Scanner Access Now Easy) Project"
8 arch=('i686' 'x86_64')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl' 'sane>=1.0.19')
12 makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig'
13              )
14 url='http://search.cpan.org/dist/Sane'
15 source=('http://search.cpan.org/CPAN/authors/id/R/RA/RATCLIFFE/Sane-0.03.tar.gz')
16 md5sums=('db83b8b07e1263b78187c4349a183082')
18 build() {
19   PERL=/usr/bin/perl
20   DIST_DIR="${srcdir}/Sane-0.03"
21   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
22     PERL_AUTOINSTALL=--skipdeps                            \
23     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
24     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
25     MODULEBUILDRC=/dev/null
27   { cd "$DIST_DIR" &&
28     $PERL Makefile.PL &&
29     make &&
30     make test &&
31     make install;
32   } || return 1;
34   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete