blob: 89f9735d9b3998f7d6b1b81af4673406d4564372 (
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
|
# Generator : CPANPLUS::Dist::Arch 1.19
pkgname='perl-file-homedir'
pkgver='0.99'
pkgrel='1'
pkgdesc="Find your home and other directories on any platform"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=5.5.30' 'perl-file-which>=0.05')
makedepends=()
url='http://search.cpan.org/dist/File-HomeDir'
source=('http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-HomeDir-0.99.tar.gz')
md5sums=('cb058c68393631344c2b906026091016')
sha512sums=('ac154f07105fc0267488f152fa9b853f252a8ae8f8dcb39d204ae305ff2ff24e3682ff41b0f5dbb81fe5f8e842e555de009e93704084611b8f8e0e2d4c12192b')
_distdir="${srcdir}/File-HomeDir-0.99"
build() {
( 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
cd "$_distdir"
/usr/bin/perl Makefile.PL
make
)
}
check() {
cd "$_distdir"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
cd "$_distdir"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
|