diff options
author | John D Jones III | 2015-06-16 15:33:19 -0600 |
---|---|---|
committer | John D Jones III | 2015-06-16 15:33:19 -0600 |
commit | 21978f469ab155348d79e13754be26d20bd437a7 (patch) | |
tree | c16118cb13b925898808059613038701079547c9 | |
download | aur-21978f469ab155348d79e13754be26d20bd437a7.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c70bf1103b91 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = perl-namespace-autoclean + pkgdesc = Keep imports out of your namespace + pkgver = 0.24 + pkgrel = 1 + url = https://metacpan.org/release/namespace-autoclean + arch = any + license = PerlArtistic + license = GPL + checkdepends = perl-test-requires + depends = perl-b-hooks-endofscope>=0.12 + depends = perl-sub-identify + depends = perl-namespace-clean>=0.20 + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/namespace-autoclean-0.24.tar.gz + md5sums = b0642f870ef4d0b77c1ec5fe5123685b + sha512sums = 6fb224e27b631c8b8f14936812d40fe69a5a8e33a0afffd5a4a1e7bb26a2afacdf6179744621fa2eb5540d151676e81ad375de2d76d52c004252ff3304f4552c + +pkgname = perl-namespace-autoclean + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5012600534ac --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com> +# Generator : CPANPLUS::Dist::Arch 1.30 + +pkgname='perl-namespace-autoclean' +pkgver='0.24' +pkgrel='1' +pkgdesc="Keep imports out of your namespace" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-b-hooks-endofscope>=0.12' 'perl-sub-identify' 'perl-namespace-clean>=0.20') +makedepends=() +checkdepends=('perl-test-requires') +url='https://metacpan.org/release/namespace-autoclean' +source=('http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/namespace-autoclean-0.24.tar.gz') +md5sums=('b0642f870ef4d0b77c1ec5fe5123685b') +sha512sums=('6fb224e27b631c8b8f14936812d40fe69a5a8e33a0afffd5a4a1e7bb26a2afacdf6179744621fa2eb5540d151676e81ad375de2d76d52c004252ff3304f4552c') +_distdir="namespace-autoclean-0.24" + +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 "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_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: |