diff options
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/perl_modules/perl-file-homedir/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-file-homedir/PKGBUILD b/abs/core/perl_modules/perl-file-homedir/PKGBUILD new file mode 100644 index 0000000..89f9735 --- /dev/null +++ b/abs/core/perl_modules/perl-file-homedir/PKGBUILD @@ -0,0 +1,48 @@ +# Generator : CPANPLUS::Dist::Arch 1.19 + +pkgname='perl-file-homedir' +pkgver='0.99' +pkgrel='1' +pkgdesc="Find your home and other directories on any platform" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl>=5.5.30' 'perl-file-which>=0.05') +makedepends=() +url='http://search.cpan.org/dist/File-HomeDir' +source=('http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-HomeDir-0.99.tar.gz') +md5sums=('cb058c68393631344c2b906026091016') +sha512sums=('ac154f07105fc0267488f152fa9b853f252a8ae8f8dcb39d204ae305ff2ff24e3682ff41b0f5dbb81fe5f8e842e555de009e93704084611b8f8e0e2d4c12192b') +_distdir="${srcdir}/File-HomeDir-0.99" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$_distdir" + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |