summaryrefslogtreecommitdiff
path: root/perl-devel-checklib/PKGBUILD
blob: c1ecf390b29fc95b87c05a151af337f8811a1689 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor:pzl <alsoelp _at_ gmail>
# CPAN Name  : Devel::CheckLib

pkgname='perl-devel-checklib'
pkgver=1.11
pkgrel='3'
pkgdesc="Module to check if other perl modules are installed"
arch=('any')
url='http://search.cpan.org/dist/Devel-CheckLib/'
license=('PerlArtistic' 'GPL')
depends=(
  'perl>=5.4.5'
  'perl-exporter'
  'perl-file-temp>=0.16'
  'perl-pathtools')
makedepends=(
  'perl-extutils-makemaker'
  'perl-io-captureoutput>=1.0801'
  'perl-mock-config>=0.02'
  'perl-test-simple>=0.62')
checkdepends=('perl-io-captureoutput')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/MA/MATTN/Devel-CheckLib-${pkgver}.tar.gz")
sha512sums=('21a64cb2ec4f3769d604eba151074daa841d40d2073a93ec186e82d8496f5ca05728c5352a31c4f07765956b85cb3144225edb51b84245b0582267af55ef2e2f')
_distdir="Devel-CheckLib-${pkgver}"

prepare() {
    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
}

build() {
    cd "${srcdir}/${_distdir}"
    /usr/bin/perl Makefile.PL
    make
}

check() {
    cd "${srcdir}/${_distdir}"
    make test
}

package() {
    cd "${srcdir}/${_distdir}"
    make install

    find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}