# $Id: PKGBUILD 73835 2012-07-16 05:38:20Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-chart
pkgver=2.4.5
pkgrel=1
pkgdesc="Business chart widget collection"
arch=('any')
url="http://search.cpan.org/dist/Chart"
license=('GPL' 'PerlArtistic')
depends=('perl-gd>=1.2')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/C/CH/CHARTGRP/Chart-$pkgver.tar.gz)
md5sums=('5c62d36d9de0a77215eda60009f89b6d')

build() {
  cd  $srcdir/Chart-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
