blob: a816b08ed6c1e75bf54f510fff9f3d2a526cc9ea (
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
|
# Maintainer: pzl <alsoelp _at_ gmail>
# CPAN Name : Devel::CheckLib
pkgname='perl-devel-checklib'
pkgver='1.07'
pkgrel='1'
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')
checkdepends=('perl-io-captureoutput')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/MA/MATTN/Devel-CheckLib-${pkgver}.tar.gz")
sha512sums=('05ced7b976b2c9854f0705db3b461614962568045e04b33a92c11d05ec8183cf56935dc5ef2f80e4746d52cb08c6c993627166d0f701abce5c91ceceed39d103')
_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
}
|