# Maintainer: Erich Eckner pkgname='perl-specio' pkgver=0.40 pkgrel=1 pkgdesc='Type constraints and coercions for Perl' arch=('any') license=('PerlArtistic' 'GPL') options=('!emptydirs') provides=( 'perl-specio-coercion=0.40' 'perl-specio-constraint-anycan=0.40' 'perl-specio-constraint-anydoes=0.40' 'perl-specio-constraint-anyisa=0.40' 'perl-specio-constraint-enum=0.40' 'perl-specio-constraint-intersection=0.40' 'perl-specio-constraint-objectcan=0.40' 'perl-specio-constraint-objectdoes=0.40' 'perl-specio-constraint-objectisa=0.40' 'perl-specio-constraint-parameterizable=0.40' 'perl-specio-constraint-parameterized=0.40' 'perl-specio-constraint-role-cantype=0.40' 'perl-specio-constraint-role-doestype=0.40' 'perl-specio-constraint-role-interface=0.40' 'perl-specio-constraint-role-isatype=0.40' 'perl-specio-constraint-simple=0.40' 'perl-specio-constraint-structurable=0.40' 'perl-specio-constraint-structured=0.40' 'perl-specio-constraint-union=0.40' 'perl-specio-declare=0.40' 'perl-specio-declaredat=0.40' 'perl-specio-exception=0.40' 'perl-specio-exporter=0.40' 'perl-specio-helpers=0.40' 'perl-specio-library-builtins=0.40' 'perl-specio-library-numeric=0.40' 'perl-specio-library-perl=0.40' 'perl-specio-library-string=0.40' 'perl-specio-library-structured-dict=0.40' 'perl-specio-library-structured-map=0.40' 'perl-specio-library-structured-tuple=0.40' 'perl-specio-library-structured=0.40' 'perl-specio-oo=0.40' 'perl-specio-partialdump=0.40' 'perl-specio-registry=0.40' 'perl-specio-role-inlinable=0.40' 'perl-specio-subs=0.40' 'perl-specio-typechecks=0.40' 'perl-test-specio=0.40') optdepends=( 'perl-ref-util>=0.112' 'perl-sub-util>=1.40') depends=( 'perl-carp' 'perl-devel-stacktrace' 'perl-eval-closure' 'perl-exporter' 'perl-io' 'perl-module-runtime' 'perl-moo' 'perl-mro-compat' 'perl-parent' 'perl-role-tiny>=1.003003' 'perl-scalar-list-utils>=1.33' 'perl-storable' 'perl-test-fatal' 'perl-test-simple>=0.96' 'perl-try-tiny' 'perl-version>=0.83' 'perl>=5.8.0') makedepends=( 'perl-extutils-makemaker' 'perl-lib' 'perl-pathtools' 'perl-test-needs') checkdepends=( 'perl-test-requires' 'perl-test-fatal' 'perl-namespace-autoclean' 'perl-moose' ) url='https://metacpan.org/release/Specio' _distdir="Specio-${pkgver}" source=("https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/${_distdir}.tar.gz") sha512sums=('c78354f7c2d6cb34297c12a035e06cced83c9b0275e46c7e9a8d4a881b400d07b88a514630f18b2eeba581208fe58390473b35df23bad247913f722f43ef3c83') 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" 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: