summaryrefslogtreecommitdiff
path: root/perl-data-alias/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
committerErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
commitf6e08b5f0a9647bce466a38e9833cdf9b2b034d6 (patch)
tree6a508b21454687aa188deb1ef0490f1af4e7368f /perl-data-alias/PKGBUILD
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe.git.save-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-data-alias/PKGBUILD')
-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