updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / perl-chart-gnuplot / PKGBUILD
blobd0ad874bda498245238ded34a79339cc6d5e909d
1 # CPAN Name  : Chart-Gnuplot
2 # Contributor: Max Roder <maxroder@web.de>
3 # Contributor: Thomas Dziedzic < gostrc at gmail >
4 # Contributor: Pierre-Paul Paquin <pierrepaulpaquin@gmail.com>
5 # Generator  : CPANPLUS::Dist::Arch 1.19
7 pkgname='perl-chart-gnuplot'
8 pkgver='0.17'
9 pkgrel='1'
10 pkgdesc="Plot graph using Gnuplot in Perl on the fly"
11 arch=('any')
12 license=('PerlArtistic' 'GPL')
13 options=('!emptydirs')
14 depends=('perl')
15 optdepends=('imagemagick: for image format other than PS, PDF and EPS')
16 makedepends=()
17 url='http://search.cpan.org/dist/Chart-Gnuplot'
18 source=('http://search.cpan.org/CPAN/authors/id/K/KW/KWMAK/Chart/Gnuplot/Chart-Gnuplot-0.17.tar.gz')
19 md5sums=('d040e2923764a1e63b8556fbcc81b249')
20 sha512sums=('38a4492d5d57aa6b28673083d19fb5e0262ab0667edacf40bf87ff105d0c5b77458d28a9d8b40d669772da5e289adde80d585d0c4f8d34ad2643881012a336e5')
21 _distdir="${srcdir}/Chart-Gnuplot-0.17"
23 build() {
24   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
25       PERL_AUTOINSTALL=--skipdeps                            \
26       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
27       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
28       MODULEBUILDRC=/dev/null
30     cd "$_distdir"
31     /usr/bin/perl Makefile.PL
32     make
33   )
36 check() {
37   cd "$_distdir"
38   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
39     make test
40   )
43 package() {
44   cd "$_distdir"
45   make install
46   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
49 # Local Variables:
50 # mode: shell-script
51 # sh-basic-offset: 2
52 # End:
53 # vim:set ts=2 sw=2 et: