summaryrefslogtreecommitdiff
path: root/perl-task-weaken/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'perl-task-weaken/PKGBUILD')
-rw-r--r--perl-task-weaken/PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-task-weaken/PKGBUILD b/perl-task-weaken/PKGBUILD
index 2e6bd0b23..35fc46d59 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 \