summaryrefslogtreecommitdiff
path: root/perl-moosex-aliases/PKGBUILD
blob: 7e3eb4aca18176acfaad1e09e40c3c4a36494fc4 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor:Stefan Göbel <aur —at— subtype —dot— de>

pkgname='perl-moosex-aliases'
_module='MooseX-Aliases'
_author='D/DO/DOY'
pkgver='0.11'
pkgrel=11
_distdir="${_module}-${pkgver}"
pkgdesc='Easy aliasing of methods and attributes in Moose.'
arch=('any')
url="https://metacpan.org/release/$_module"
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=(
  'perl>=5.34'
  'perl<5.35'
  'perl-moose>=2.0000'
  'perl-moose-exporter'
  'perl-moose-role'
  'perl-moose-util-typeconstraints'
  'perl-scalar-list-utils')
makedepends=(
  'perl-extutils-makemaker>=6.30'
  'perl-file-temp'
  'perl-test-fatal'
  'perl-test-moose'
  'perl-test-simple>=0.88')
checkdepends=('perl-test-fatal' 'perl-test-output')
source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
sha512sums=('5a999c417ea59aa609ad6f0f3e9d9f18aaeeb683f2e05255d8577608f4699a49befcd42ecb968064f9164e8355edf460be220f1b92415d020d4ce122d580ffcc')

build() {
   (
      unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
      export PERL_MM_USE_DEFAULT='1' PERL_AUTOINSTALL='--skipdeps'
      cd "${_distdir}"
      /usr/bin/perl Makefile.PL
      make
   )
}

check() {
   (
      cd "${_distdir}"
      unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
      export PERL_MM_USE_DEFAULT='1'
      make test
   )
}

package() {
   (
      cd "${_distdir}"
      unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
      make install INSTALLDIRS='vendor' DESTDIR="$pkgdir"
      find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
   )
}

#:indentSize=3:tabSize=3:noTabs=true:mode=shellscript:maxLineLen=87: