summaryrefslogtreecommitdiff
path: root/community/perl-package-stash-xs/PKGBUILD
blob: 009a0633deda98772cf1beb1101d5dce77dafc27 (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
# Maintainer: Justin Davis <jrcd83@gmail.com>
# $Id: PKGBUILD 86634 2013-03-20 19:09:56Z eric $

pkgname=perl-package-stash-xs
pkgver=0.26
pkgrel=1
pkgdesc="Faster and more correct implementation of the Package::Stash API"
arch=(i686 x86_64)
license=(PerlArtistic GPL)
options=(!emptydirs)
depends=('perl')
makedepends=('perl-extutils-makemaker')
checkdepends=('perl-test-fatal' 'perl-test-simple' 'perl-test-requires')
url="http://search.cpan.org/dist/Package-Stash-XS"
source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-XS-${pkgver}.tar.gz")
md5sums=('33b07af6344d4a16ecd4e9ae3fa48984')

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor"     \
      PERL_MB_OPT="--installdirs vendor" \
      MODULEBUILDRC=/dev/null

    cd Package-Stash-XS-${pkgver}
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    cd Package-Stash-XS-${pkgver}
    make test
  )
}

package() {
    cd Package-Stash-XS-${pkgver}
    make DESTDIR="$pkgdir" install
}

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