summaryrefslogtreecommitdiff
path: root/perl-type-tiny/PKGBUILD
blob: dd5f7f9c9f147b7d96c9786aaa2c33e4d1c64ef4 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Generator : neuesPerlPaket (c5ad2c9a17883435e14ac3343816be21cae693586e5330d497f678cbddf0b57f05d555b2fc1095096617fb98dab73cfd4db2a674a88ec04c617a9c1ea504a7d7)

pkgname='perl-type-tiny'
pkgver=1.002000
pkgrel='2'
pkgdesc='tiny, yet Moo(se)-compatible type constraint'
arch=('x86_64' 'i686')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
provides=(
  'perl-devel-typetiny-perl56compat=1.002000'
  'perl-devel-typetiny-perl58compat=1.002000'
  'perl-error-typetiny=1.002000'
  'perl-error-typetiny-assertion=1.002000'
  'perl-error-typetiny-compilation=1.002000'
  'perl-error-typetiny-wrongnumberofparameters=1.002000'
  'perl-eval-typetiny=1.002000'
  'perl-reply-plugin-typetiny=1.002000'
  'perl-test-typetiny=1.002000'
  'perl-type-coercion=1.002000'
  'perl-type-coercion-frommoose=1.002000'
  'perl-type-coercion-union=1.002000'
  'perl-type-library=1.002000'
  'perl-type-params=1.002000'
  'perl-type-parser=1.002000'
  'perl-type-registry=1.002000'
  'perl-types-common-numeric=1.002000'
  'perl-types-common-string=1.002000'
  'perl-types-standard=1.002000'
  'perl-types-standard-arrayref=1.002000'
  'perl-types-standard-cycletuple=1.002000'
  'perl-types-standard-dict=1.002000'
  'perl-types-standard-hashref=1.002000'
  'perl-types-standard-map=1.002000'
  'perl-types-standard-scalarref=1.002000'
  'perl-types-standard-tuple=1.002000'
  'perl-types-typetiny=1.002000'
  'perl-type-tiny-class=1.002000'
  'perl-type-tiny-duck=1.002000'
  'perl-type-tiny-enum=1.002000'
  'perl-type-tiny-intersection=1.002000'
  'perl-type-tiny-role=1.002000'
  'perl-type-tiny-union=1.002000'
  'perl-type-utils=1.002000')
conflicts=(
  'perl-kavorka<=0.013'
  'perl-types-readonly<=0.001')
optdepends=(
  'perl>=5.10.1'
  'perl-devel-lexalias>=0.05'
  'perl-devel-stacktrace'
  'perl-ref-util-xs>=0.200'
  'perl-regexp-util>=0.003'
  'perl-sub-util'
  'perl-type-tie'
  'perl-type-tiny-xs>=0.011')
depends=(
  'perl>=5.6.1'
  'perl-exporter-tiny>=0.026')
makedepends=(
  'perl-extutils-makemaker>=6.17'
  'perl-test-simple>=0.96')
url='https://metacpan.org/release/Type-Tiny'
_distdir="Type-Tiny-${pkgver}"
source=("https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/${_distdir}.tar.gz")
sha512sums=('da9e150011f898bd2af2adafb12124505b651f7b41e4cd9177bcf8e4148f7a7732014292f9f2099bc0b2582f4ee1809009cabe74df8002d182eceb855f6d446a')

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
}