blob: 81d353904338d1e68b0f38edfd499ace2713fe7a (
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
|
# Contributor: dreieck
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com>
# Generator : CPANPLUS::Dist::Arch 1.30
pkgname='perl-test-compile'
_distname='Test-Compile'
pkgver=3.3.3
pkgrel=1
pkgdesc="Check whether Perl files compile correctly."
arch=('any')
url="https://metacpan.org/release/${_distname}"
license=(
'Artistic-1.0-Perl'
'GPL-2.0-or-later'
)
options=('!emptydirs')
depends=(
'perl>=5.10.0'
'perl-exporter>=5.68'
'perl-parent>=0.225'
)
makedepends=(
'perl-module-build>0.38'
'perl-version>=0.77'
)
checkdepends=(
'perl-test-warnings'
'perl-test-exception'
)
_pkgtarname="${_distname}-v${pkgver}"
source=(
"https://cpan.metacpan.org/authors/id/E/EG/EGILES/${_pkgtarname}.tar.gz"
)
sha256sums=(
'df3ab30ecb51ae14a1aa9b9fc14324c969cc258ef2adacc35bc68194112da685'
)
options+=('emptydirs')
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 "${_pkgtarname}"
/usr/bin/perl 'Makefile.PL'
make
)
}
check() {
cd "${_pkgtarname}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
cd "${_pkgtarname}"
make install
find "${pkgdir}" -name '.packlist' -o -name 'perllocal.pod' -delete
}
|