1 # Contributor: 3ED <krzysztof1987 at gmail dot com>
4 _lastauthor=R/RU/RURBAN
8 pkgdesc="Perl compiler's C backend"
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl-ipc-run' 'perl-opcodes' 'perl-b-flags' 'perl-time-hires')
13 url="http://search.cpan.org/dist/${_pkgname}/"
14 source=(http://search.cpan.org/CPAN/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
15 sha256sums=('01805fc1dea3b0097f32852132ab873576d32f19a0baee8030ccf3cbf5876ca0')
18 cd "${srcdir}/${_pkgname}-${pkgver}"
20 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
21 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
22 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
23 MODULEBUILDRC=/dev/null
25 if [ -f "Build.PL" ]; then
28 elif [ -f "Makefile.PL" ]; then
36 cd "${srcdir}/${_pkgname}-${pkgver}"
38 if [ -f "Build.PL" ]; then
40 elif [ -f "Makefile.PL" ]; then
45 cd "${srcdir}/${_pkgname}-${pkgver}"
47 if [ -f "Build.PL" ]; then
49 elif [ -f "Makefile.PL" ]; then
53 find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete