From 5523ce246e8dfeabed66c15b9e7f1805c9320137 Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Sat, 14 Jan 2012 17:16:38 -0500 Subject: Use sub-shells in perl PKGBUILDs. --- lib/templ/perl-pkg | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/templ/perl-pkg b/lib/templ/perl-pkg index ef112cd..47cc682 100755 --- a/lib/templ/perl-pkg +++ b/lib/templ/perl-pkg @@ -17,8 +17,9 @@ my %ACTIONS_OF = my %FUNCFMTS; $FUNCFMTS{'build'} = <<'END_FMT'; -build() { - ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ +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'" \ @@ -26,17 +27,16 @@ build() { cd "$_distdir" %s - ) -} +) END_FMT $FUNCFMTS{'check'} = <<'END_FMT'; -check() { - ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" +check() +( + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" cd "$_distdir" %s - ) -} +) END_FMT $FUNCFMTS{'package'} = <<'END_FMT'; -- cgit v1.2.3-24-g4f1b