summaryrefslogtreecommitdiff
path: root/community/perl-mouse/PKGBUILD
blob: a6868da9a6c2754f33ec0ccedfd92bc601199400 (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
# $Id: PKGBUILD 116310 2014-07-24 18:54:35Z jsteel $
# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
# Contributor: Justin Davis <jrcd83@gmail.com>

pkgname=perl-mouse
pkgver=2.3.0
pkgrel=1
pkgdesc="Moose minus the antlers"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Mouse"
license=('PerlArtistic' 'GPL')
depends=('perl')
makedepends=('perl-test-exception' 'perl-test-fatal' 'perl-module-build'
             'perl-module-build-xsutil' 'perl-test-requires'
             'perl-test-leaktrace' 'perl-test-output' 'perl-test-deep'
             'perl-io-string')
source=(http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/Mouse-$pkgver.tar.gz)
md5sums=('aae2b55f280f773a92fa16c6bdcc358d')

build() {
  cd "$srcdir"/Mouse-$pkgver

  ( 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

    /usr/bin/perl Build.PL
    ./Build
  )
}

check() {
  cd "$srcdir"/Mouse-$pkgver

  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    ./Build test
  )
}

package() {
  cd "$srcdir"/Mouse-$pkgver

  ./Build install
}