blob: c76da5fd461e3ba1690c7f23723744c9c37687b2 (
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
|
# Maintainer: marmis <tiagodepalves@gmail.com>
# Contributor: "marmis" Tiago de Paula <tiagodepalves@gmail.com>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
pkgname=licensecheck
pkgdesc='Simple license checker for source files'
pkgver=3.3.10
pkgrel=2
url='https://metacpan.org/dist/App-Licensecheck'
arch=(any)
license=('AGPL-3.0-or-later')
# See "prereqs" in https://metacpan.org/dist/App-Licensecheck/source/Makefile.PL
makedepends=(
## configure::requires
'perl-extutils-makemaker>=6.17'
)
depends=(
## runtime::requires
'perl-autodie'
'perl-encode>=2.93'
# perl: "Fnctl"
'perl-feature-compat-class>=0.04'
'perl-feature-compat-try'
'perl-getopt-long>=2.24'
'perl-io-interactive'
'perl-scalar-list-utils>=1.45' # "List::Util"
'perl-log-any'
'perl-log-any-adapter-screen'
'perl-namespace-clean'
'perl-path-iterator-rule'
'perl-path-tiny>=0.062'
'perl>=5.12'
'perl-pod-constants'
'perl-pod-usage>=1.60'
'perl-string-copyright>=0.003'
'perl-string-escape'
'perl-string-license>=0.0.6'
)
checkdepends=(
## test::recommends
'perl-regexp-pattern-license>=3.9.0'
'perl-string-copyright>=0.003009'
## test::requires
'perl-encode'
'perl-encode-locale'
'perl-test2-tools-command'
'perl-test-simple>=1.302200' # "Test2::V0"
'perl-test-without-module'
)
options=(!emptydirs)
source=("https://cpan.metacpan.org/authors/id/J/JO/JONASS/App-Licensecheck-v${pkgver}.tar.gz"
licensecheck-fix-encoding-tests.patch)
b2sums=('114f192f2c01e50b235df32fce33647d39765d4bc7f9f3993715a0f9a29112efc1cb3d190351f73c388a3069f4e9d06b82ef5306dde547890776c67e4309dd0c'
'16c4aca92f680b08c61200e5ad87c6598087c40e83330a693bd79a73f4215d06820681632abbe3379628a1fb736693eaa8d67a251db6bc1f2a81aea8cb7e61b9')
prepare() {
cd "App-Licensecheck-v${pkgver}"
patch -t -Np1 -i ../licensecheck-fix-encoding-tests.patch
}
build() {
cd "App-Licensecheck-v${pkgver}"
unset PERL_MM_OPT PERL5LIB PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1
make
}
check() {
cd "App-Licensecheck-v${pkgver}"
unset PERL5LIB PERL_LOCAL_LIB_ROOT
LC_ALL=C.UTF-8 make test
}
package() {
cd "App-Licensecheck-v${pkgver}"
unset PERL5LIB PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
}
|