diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-01-14 23:16:38 +0100 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-01-14 23:16:38 +0100 |
commit | 5523ce246e8dfeabed66c15b9e7f1805c9320137 (patch) | |
tree | 3ad4af985d57ceb7dc9a257eead071355aec0b31 | |
parent | 04ee290c667a280fc2025c4e583730193b320e0b (diff) | |
download | genpkg-5523ce246e8dfeabed66c15b9e7f1805c9320137.tar.gz genpkg-5523ce246e8dfeabed66c15b9e7f1805c9320137.tar.xz |
Use sub-shells in perl PKGBUILDs.
-rwxr-xr-x | lib/templ/perl-pkg | 16 |
1 files 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'; |