summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45e10202e032d5424c86969c125a163e0639f21e (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
# Mantainer: baest <m at frausing dot me>
#
pkgname=perl-app-cpm
_lastauthor=S/SK/SKAJI
_pkgname=App-cpm
pkgver=0.997019
pkgrel=1
pkgdesc='a fast CPAN module installer'
arch=('any')
license=('PerlArtistic' 'GPL')
depends=(
  perl-class-tiny
  perl-command-runner
  perl-cpan-common-index
  perl-cpan-distnameinfo
  perl-cpan-meta
  perl-extutils-installpaths
  perl-file-copy-recursive
  perl-file-pushd
  perl-http-tinyish
  perl-json-pp
  perl-local-lib
  perl-menlo-legacy
  perl-module-cpanfile
  perl-parallel-pipes
  perl-parse-pmfile
)
url="https://metacpan.org/release/${_pkgname}"
source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
sha256sums=('1be7391d3f30ab2417fb569f971d58941ce623dc23dfa02673b602297588c5cd')

build() {
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
    PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
    PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
    MODULEBUILDRC=/dev/null

  cd "${srcdir}/${_pkgname}-${pkgver}"
  perl Build.PL
  perl Build
}
check() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  perl Build test
}
package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  perl Build install
}