blob: f2fe0197db824bae8f1bd459954e3d048620b384 (
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
|
# Maintainer: ryoskzypu <ryoskzypu@proton.me>
# Contributor: Michał Wojdyła <micwoj9292@gmail.com>
# Contributor: chimeracoder <dev@chimeracoder.net>
_author=ETHER
_dist=MooseX-LazyRequire
pkgname=perl-${_dist@L}
pkgver=0.11
pkgrel=3
pkgdesc='Required attributes which fail only when trying to use them'
arch=('any')
url=https://metacpan.org/dist/$_dist
license=('Artistic-1.0-Perl OR GPL-1.0-or-later')
depends=(
'perl-aliased>=0.30'
'perl-carp'
'perl-moose'
'perl-namespace-autoclean'
'perl>=5.6.0'
)
makedepends=(
'perl-extutils-makemaker'
'perl-module-build-tiny>=0.037'
)
checkdepends=(
'perl-extutils-makemaker'
'perl-pathtools'
'perl-test-fatal'
'perl-test-simple'
)
optdepends=('perl-cpan-meta')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/$_dist-$pkgver.tar.gz")
sha256sums=('ef620c1e019daf9cf3f23a943d25a94c91e93ab312bcd63be2e9740ec0b94288')
build()
{
cd "$_dist-$pkgver"
unset PERL_MB_OPT PERL5LIB PERL_LOCAL_LIB_ROOT
/usr/bin/perl Build.PL --create_packlist=0
./Build
}
check()
{
cd "$_dist-$pkgver"
unset PERL5LIB PERL_LOCAL_LIB_ROOT
./Build test
}
package()
{
cd "$_dist-$pkgver"
unset PERL5LIB PERL_LOCAL_LIB_ROOT
./Build install --installdirs=vendor --destdir="$pkgdir"
}
|