updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-image-imlib2 / PKGBUILD
blobdcb916a0c4844cdfff593267e1e991e21dd306c5
1 # CPAN Name  : Image-Imlib2
2 # Contributor: AUR Perl <aurperl@juster.info>
3 # Generator  : CPANPLUS::Dist::Arch 1.18
5 pkgname='perl-image-imlib2'
6 pkgver='2.03'
7 pkgrel='1'
8 pkgdesc="Interface to the Imlib2 image library"
9 arch=('i686' 'x86_64')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl' 'imlib2')
13 makedepends=()
14 url='http://search.cpan.org/dist/Image-Imlib2'
15 source=('http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Image-Imlib2-2.03.tar.gz')
16 md5sums=('303b91fae2b863903e41a3cac34fa0d3')
17 sha512sums=('d38eba0da1d9fe46244400454f55d2d4d682a7aff78c123c01476c14f30de3fc4699a1f926fc82fea09341f0577f943d82fe73cd40225bc69a06e1c710383d60')
18 _distdir="${srcdir}/Image-Imlib2-2.03"
20 build() {
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 "$_distdir"
28     /usr/bin/perl Makefile.PL
29     make
30   )
33 check() {
34   cd "$_distdir"
35   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
36     make test
37   )
40 package() {
41   cd "$_distdir"
42   make install
43   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
46 # Local Variables:
47 # mode: shell-script
48 # sh-basic-offset: 2
49 # End:
50 # vim:set ts=2 sw=2 et: