1 # Contributor: Justin Davis <jrcd83@gmail.com>
2 pkgname='perl-cpanplus-dist-arch-git'
5 pkgdesc='Newest developer release for CPANPLUS::Dist::Arch'
7 license=('PerlArtistic' 'GPL')
9 makedepends=('perl-test-pod-coverage' 'perl-test-pod')
11 provides=('perl-cpanplus-dist-arch')
12 url='http://github.com/juster/perl-cpanplus-dist-arch'
16 _gitroot='git://github.com/juster/perl-cpanplus-dist-arch.git'
20 DIST_DIR="${srcdir}/${pkgname}"
21 msg 'Creating CPANPLUS::Dist::Arch developer package...'
23 if [ -d "$DIST_DIR" ] ; then
24 warning 'Repository directory already exists!'
25 msg2 'Attempting to pull from repo and checkout master...'
27 git pull "$_gitroot" "$_gitname"
30 msg2 "Cloning $_gitroot repository..."
31 git clone "$_gitroot" "$DIST_DIR"
34 export PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
35 MODULEBUILDRC='/dev/null' TEST_RELEASE=1
37 msg 'Building CPANPLUS::Dist::Arch...'
41 msg2 'Testing CPANPLUS::Dist::Arch...' &&
43 perl Build install; } || return 1;
45 find "$pkgdir" -name .packlist -o -name perllocal.pod -delete