diff options
author | Justin Davis <jrcd83@gmail.com> | 2013-04-11 13:33:35 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2013-04-11 13:33:35 +0200 |
commit | ea8184012874f11d4ef9eed6e7fcc8cd5a1bf848 (patch) | |
tree | d708ecf730aac31a5941f9c3889107b2ae1278ae /preps/perl.d/perl-dist | |
parent | 418be7247234652f2a09cf20cbbb892edceed49c (diff) | |
download | genpkg-ea8184012874f11d4ef9eed6e7fcc8cd5a1bf848.tar.gz genpkg-ea8184012874f11d4ef9eed6e7fcc8cd5a1bf848.tar.xz |
Perl mod pkgbuilds use $_ddir now.
With pacman 4.1 $srcdir is no longer set outside of PKGBUILD
functions. Yipee! This breaks all of my PKGBUILDs. Now we
switch to storing the distribution's tarballed directory in the
_ddir custom variable. We cd into $srcdir/$_ddir at the
beginning of every func.
Custom variable mechanics have changed in bin/pbfields as
well. Instead of hard-coding _dir as an accepted field, any
PKGDATA entry with a name starting with underscore (_) is
considered a custom variable and printed in the PKGBUILD.
Diffstat (limited to 'preps/perl.d/perl-dist')
-rwxr-xr-x | preps/perl.d/perl-dist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/preps/perl.d/perl-dist b/preps/perl.d/perl-dist index c6fa2e3..0310fa4 100755 --- a/preps/perl.d/perl-dist +++ b/preps/perl.d/perl-dist @@ -402,7 +402,7 @@ sub main 'pkgver' => $ver, 'pkgdesc' => $meta->{'abstract'}, 'arch' => (xsdist($distdir) ? ['i686', 'x86_64'] : 'any'), - 'dir' => "\$srcdir/$distdir", + '_ddir' => $distdir, %$deps, ); |