summaryrefslogtreecommitdiff
path: root/perl-specio/PKGBUILD
blob: bba3f3bd24ec6f587f4ad9fa0d831ac504eaa81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname='perl-specio'
pkgver=0.42
pkgrel=1
pkgdesc='Type constraints and coercions for Perl'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
provides=(
  'perl-specio-coercion=0.42'
  'perl-specio-constraint-anycan=0.42'
  'perl-specio-constraint-anydoes=0.42'
  'perl-specio-constraint-anyisa=0.42'
  'perl-specio-constraint-enum=0.42'
  'perl-specio-constraint-intersection=0.42'
  'perl-specio-constraint-objectcan=0.42'
  'perl-specio-constraint-objectdoes=0.42'
  'perl-specio-constraint-objectisa=0.42'
  'perl-specio-constraint-parameterizable=0.42'
  'perl-specio-constraint-parameterized=0.42'
  'perl-specio-constraint-role-cantype=0.42'
  'perl-specio-constraint-role-doestype=0.42'
  'perl-specio-constraint-role-interface=0.42'
  'perl-specio-constraint-role-isatype=0.42'
  'perl-specio-constraint-simple=0.42'
  'perl-specio-constraint-structurable=0.42'
  'perl-specio-constraint-structured=0.42'
  'perl-specio-constraint-union=0.42'
  'perl-specio-declare=0.42'
  'perl-specio-declaredat=0.42'
  'perl-specio-exception=0.42'
  'perl-specio-exporter=0.42'
  'perl-specio-helpers=0.42'
  'perl-specio-library-builtins=0.42'
  'perl-specio-library-numeric=0.42'
  'perl-specio-library-perl=0.42'
  'perl-specio-library-string=0.42'
  'perl-specio-library-structured=0.42'
  'perl-specio-library-structured-dict=0.42'
  'perl-specio-library-structured-map=0.42'
  'perl-specio-library-structured-tuple=0.42'
  'perl-specio-oo=0.42'
  'perl-specio-partialdump=0.42'
  'perl-specio-registry=0.42'
  'perl-specio-role-inlinable=0.42'
  'perl-specio-subs=0.42'
  'perl-specio-typechecks=0.42'
  'perl-test-specio=0.42')
optdepends=(
  'perl-ref-util>=0.112'
  'perl-sub-util>=1.40')
depends=(
  'perl>=5.8.0'
  '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')
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=('7a9ff3e96cf3957d7857cd5f6af5efd9e35fc4c888fcd8177041e34a2388f54269e7a3da84ec60961fb61307beb882ebf54e19ae4346876e06197b1ff57891a0')

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: