The PKGBUILD should remove some environment variables use by the perl toolchain to install packages in non-standard places (ie, local::lib). This is documented in Archlinux's Perl package guildlines (https://wiki.archlinux.org/index.php/Perl_package_guidelines). Here is a patch for PKGBUILD:
diff --git a/PKGBUILD b/PKGBUILD
index e9cac04..1f2a1db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,13 +13,20 @@ options=('!emptydirs')
source=(http://www.cpan.org/authors/id/R/RJ/RJBS/${_cpanname}-${pkgver}.tar.gz)
md5sums=('c18bfc823055d1df5255ae834e161749')
build() {
+ clean_env
cd $srcdir/${_cpanname}-${pkgver}
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ /usr/bin/perl Makefile.PL || return 1
make || return 1
}
package() {
+ clean_env
cd $srcdir/${_cpanname}-${pkgver}
- make install DESTDIR=$pkgdir || return 1
+ make install INSTALLDIRS=vendor DESTDIR=$pkgdir || return 1
find $pkgdir -name '.packlist' -delete
find $pkgdir -name '*.pod' -delete
}
+# Setup environment to ensure installation in system perl and vender directory
+clean_env() {
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null PERL_AUTOINSTALL=--skipdeps
+}
@Synthead perl-ipc-sharelite is in th dependency now
Oh, and please add 'perl-ipc-sharelite' as a dependency.
$source is out of date; please use http://search.cpan.org/CPAN/authors/id/J/JS/JSWARTZ/Cache-Cache-1.06.tar.gz
Can you complete the 'provides'?