updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / perl-imager / PKGBUILD
blobaf2a245a65d52fe904d2ce5bc79833cd389970bc
1 # CPAN Name  : Imager
2 # Contributor: Justin Davis <jrcd83@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.19
5 pkgname='perl-imager'
6 pkgver='0.86'
7 pkgrel='1'
8 pkgdesc="Perl extension for Generating 24 bit Images"
9 arch=('i686' 'x86_64')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl' 'libjpeg' 'libpng>=1.0.5' 'giflib>=4.1.4' 'libtiff>3.9.0'
13          'freetype2')
14 optdepends=('perl-parse-recdescent: needed to parse transform2() expressions')
15 makedepends=()
16 url='http://search.cpan.org/dist/Imager'
17 source=('http://search.cpan.org/CPAN/authors/id/T/TO/TONYC/Imager-0.86.tar.gz')
18 md5sums=('ca2b2bbc5ab31fb63f7019034e84fba4')
19 _distdir="${srcdir}/Imager-0.86"
21 build() {
22   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
23       PERL_AUTOINSTALL=--skipdeps                            \
24       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
25       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
26       MODULEBUILDRC=/dev/null
28     cd "$_distdir"
29     /usr/bin/perl Makefile.PL
30     make
31   )
34 check() {
35   cd "$_distdir"
36   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
37     make test
38   )
41 package() {
42   cd "$_distdir"
43   make install
44   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
47 # Local Variables:
48 # mode: shell-script
49 # sh-basic-offset: 2
50 # End:
51 # vim:set ts=2 sw=2 et: