updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / perl-graph-readwrite / PKGBUILD
blobb0e0f1be0027fefdb60348ab8c3c759ac2277a1e
1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 pkgname=perl-graph-readwrite
3 pkgver=2.00
4 pkgrel=1
5 pkgdesc='A collection of classes for reading and writing directed graphs in a variety of file formats.'
6 arch=('any')
7 url='http://search.cpan.org/dist/Graph-ReadWrite/'
8 license=('unknown')
9 depends=('perl>=5.10.0' 'perl-graph' 'perl-xml-parser' 'perl-xml-writer')
10 makedepends=()
11 provides=()
12 conflicts=()
13 replaces=()
14 backup=()
15 options=(!emptydirs)
16 install=
17 source=("http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Graph-ReadWrite-$pkgver.tar.gz")
19 build() {
20   cd "$srcdir/Graph-ReadWrite-$pkgver"
21   
22   # Setting these env variables overwrites any command-line-options we don't want...
23   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
24     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
25     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
26     MODULEBUILDRC=/dev/null
28   # If using Makefile.PL
29   { /usr/bin/perl Makefile.PL &&
30     make &&
31     make test &&
32     make install; } || return 1
34   # remove perllocal.pod and .packlist
35   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
37 # vim:set ts=2 sw=2 et:
38 md5sums=('e82da37e1202dcf431f03375e5e553e0')