diff options
author | Erich Eckner <git@eckner.net> | 2016-04-26 15:53:44 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-26 15:53:44 +0200 |
commit | c8397dae3e85540cc3d35bce1361205e9dc6df17 (patch) | |
tree | 63108e9efb579034a5a07f41e953642cbf5287fe /perl-class-tiny/PKGBUILD | |
parent | 19e4340f3136fc42896a1970e184ce01390674d4 (diff) | |
download | archlinuxewe-c8397dae3e85540cc3d35bce1361205e9dc6df17.tar.xz |
perl-class-tiny neu
Diffstat (limited to 'perl-class-tiny/PKGBUILD')
-rw-r--r-- | perl-class-tiny/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/perl-class-tiny/PKGBUILD b/perl-class-tiny/PKGBUILD new file mode 100644 index 000000000..a6c4698aa --- /dev/null +++ b/perl-class-tiny/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer : Erich Eckner <arch at eckner dot net> +# Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com> +# Generator : CPANPLUS::Dist::Arch 1.30 + +pkgname='perl-class-tiny' +pkgver='1.001' +pkgrel='1' +pkgdesc="Minimalist class construction" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +checkdepends=('perl-test-failwarnings') +url='https://metacpan.org/release/Class-Tiny' +_distdir="Class-Tiny-${pkgver}" +source=("http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/${_distdir}.tar.gz") +sha512sums=('7d64a78f72edb249b988da9ab7e4769f2721030eeb1dd3e111f1d0ae2bed76ea6ee0d5feb30867eaf78f0d436ff2e72f701cb2c51d53ce40bb0840f9b3c33dc7') + +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: |