summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 047096cbb299443d99d7b499be35168b386ad6cc (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
# Contributor: Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname='perl-class-multimethods'
pkgver='1.701'
pkgrel='1'
pkgdesc="Class::Multimethods - support for multimethods and function overloading in Perl."
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=()
url='https://metacpan.org/release/Class-Multimethods'
source=("https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/Class-Multimethods-$pkgver.tar.gz")
md5sums=('84a93a1e59b64f6c90b68903c1bc0f94')
sha512sums=('3a39d4bd8c16eb16317219dae4be62bbef6352bf9a0497e89da07ff784631ecaace0602c1d2bb5308bf339e5dd60ad64f3418c7b2ddadf8b71072eb040f494e1')
_distdir="Class-Multimethods-1.700"

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 "$srcdir/$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$srcdir/$_distdir"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "$srcdir/$_distdir"
  make install
  rm -r "$pkgdir"/usr/lib
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: