From f6e08b5f0a9647bce466a38e9833cdf9b2b034d6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 3 Jun 2016 09:57:41 +0200 Subject: _distfile in PKGBUILD von Perl-Paketen eingefügt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perl-task-weaken/PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-task-weaken') diff --git a/perl-task-weaken/PKGBUILD b/perl-task-weaken/PKGBUILD index 2e6bd0b2..35fc46d5 100644 --- a/perl-task-weaken/PKGBUILD +++ b/perl-task-weaken/PKGBUILD @@ -6,19 +6,20 @@ pkgname=perl-task-weaken _cpanname="Task-Weaken" pkgver=1.04 pkgrel='3' +_distdir="${_cpanname}-${pkgver}" pkgdesc="Ensure that a platform has weaken support" arch=('any') license=('PerlArtistic' 'GPL') options=('!emptydirs') depends=('perl>=5.5.0') url="http://search.cpan.org/dist/$_cpanname" -source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_cpanname-$pkgver.tar.gz") +source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/${_distdir}.tar.gz") sha512sums=('19749fada2b030a082d745abbc172125c3e195be5e1166ff02511fbf08aa8d37092cb0ea2cbf95452fef70f2e1cd0062d32f04d74aa52b30f6e85108f9ca80ff') # Function to change to the working directory and set # environment variables to override undesired options. prepareEnvironment() { - cd "$srcdir/$_cpanname-$pkgver" + cd "${srcdir}/${_distdir}" export \ PERL_MM_USE_DEFAULT=1 \ PERL_AUTOINSTALL=--skipdeps \ -- cgit v1.2.3-70-g09d2