blob: c850a92dc0a3f9650014f7e8deb22efd3fffb7f6 (
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
|
# CPAN Name : MooseX::Getopt
# Contributor: [% packager %]
# Generator : CPANPLUS::Dist::Arch [% version %]
pkgname=[% pkgname %]
pkgver=[% pkgver %]
pkgrel=[% pkgrel %]
pkgdesc='A Moose role for processing command line options'
arch=('any')
url='[% url %]'
license=('PerlArtistic' 'GPL')
makedepends=('perl-module-build-tiny>=0.039')
depends=(
'perl>=5.8.9'
'perl-getopt-long-descriptive>=0.088'
'perl-moose>=0.56'
'perl-moosex-role-parameterized'
'perl-try-tiny')
checkdepends=(
'perl>=5.10.1'
'perl-cpan-meta-check>=0.007'
'perl-module-runtime'
'perl-path-tiny>=0.009'
'perl-test-checkdeps>=0.006'
'perl-test-deep'
'perl-test-fatal>=0.003'
'perl-test-needs'
'perl-test-trap'
'perl-test-warnings'
'perl-namespace-autoclean')
source=([% source %])
options=(!emptydirs)
md5sums=('[% md5sums %]')
sanitize() {
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
}
build() {
cd [% distdir %]
sanitize
perl Build.PL --installdirs vendor --destdir "$pkgdir"
perl Build
}
check() {
cd [% distdir %]
sanitize
perl Build test
}
package() {
cd [% distdir %]
sanitize
perl Build install
# Remove this when https://bugs.archlinux.org/task/53770 will be fixed
find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}
|