summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/perl_modules/perl-file-homedir/PKGBUILD57
1 files changed, 28 insertions, 29 deletions
diff --git a/abs/core/perl_modules/perl-file-homedir/PKGBUILD b/abs/core/perl_modules/perl-file-homedir/PKGBUILD
index 89f9735..6eb202c 100644
--- a/abs/core/perl_modules/perl-file-homedir/PKGBUILD
+++ b/abs/core/perl_modules/perl-file-homedir/PKGBUILD
@@ -1,44 +1,43 @@
-# Generator : CPANPLUS::Dist::Arch 1.19
+# Maintainer: Brian Bidulock <bidulock@openss7.org>
+# Contributor: chimeracoder <dev@chimeracoder.net>
-pkgname='perl-file-homedir'
-pkgver='0.99'
-pkgrel='1'
+pkgname=perl-file-homedir
+_cpanname=File-HomeDir
+pkgver=1.002
+pkgrel=2
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"
+depends=('perl-file-which')
+makedepends=('perl-module-install')
+url="https://metacpan.org/release/$_cpanname"
+source=("https://cpan.metacpan.org/authors/id/R/RE/REHSACK/$_cpanname-$pkgver.tar.gz")
+md5sums=('1e999956661fbee165b088eedb5fee3c')
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 $_cpanname-$pkgver
- cd "$_distdir"
- /usr/bin/perl Makefile.PL
- make
- )
-}
+ # why isn't makepkg doing this?
+ export -n PERL_MM_OPT PERL5LIB PERL_LOCAL_LIB_ROOT
+ # install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 \
+ PERL_AUTOINSTALL='--skipdeps' \
+ perl Makefile.PL INSTALLDIRS=vendor
+ make INSTALLDIRS=vendor
+}
check() {
- cd "$_distdir"
- ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
- make test
- )
+ cd $_cpanname-$pkgver
+ make test
}
-
package() {
- cd "$_distdir"
- make install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ cd $_cpanname-$pkgver
+
+ make INSTALLDIRS=vendor DESTDIR="$pkgdir" install
+
+ # remove perllocal.pod and .packlist
+ find "$pkgdir" -name '*.pod' -o -name '.packlist' -delete
}
# Local Variables: