summaryrefslogtreecommitdiff
path: root/perl-data-alias
diff options
context:
space:
mode:
Diffstat (limited to 'perl-data-alias')
-rw-r--r--perl-data-alias/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-data-alias/PKGBUILD b/perl-data-alias/PKGBUILD
index ea7ffaaa..6f70955e 100644
--- a/perl-data-alias/PKGBUILD
+++ b/perl-data-alias/PKGBUILD
@@ -22,11 +22,12 @@ replaces=()
backup=()
options=(!emptydirs)
install=
-source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+_distdir="${_perlmod}-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
noextract=()
build(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
# Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
@@ -45,7 +46,7 @@ build(){
fi
}
check(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
# If using Makefile.PL
if [ -r Makefile.PL ]; then
@@ -56,7 +57,7 @@ check(){
fi
}
package(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
# If using Makefile.PL
if [ -r Makefile.PL ]; then