diff options
author | Erich Eckner <git@eckner.net> | 2016-06-03 09:57:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-06-03 09:57:41 +0200 |
commit | f6e08b5f0a9647bce466a38e9833cdf9b2b034d6 (patch) | |
tree | 6a508b21454687aa188deb1ef0490f1af4e7368f /perl-moosex-aliases/PKGBUILD | |
parent | 5b7cf9d298fc2343b6bcf48ea15402880426711a (diff) | |
download | archlinuxewe-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz |
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-moosex-aliases/PKGBUILD')
-rw-r--r-- | perl-moosex-aliases/PKGBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-moosex-aliases/PKGBUILD b/perl-moosex-aliases/PKGBUILD index cc305e356..994a4b71f 100644 --- a/perl-moosex-aliases/PKGBUILD +++ b/perl-moosex-aliases/PKGBUILD @@ -6,6 +6,7 @@ _module='MooseX-Aliases' _author='D/DO/DOY' pkgver='0.11' pkgrel='3' +_distdir="${_module}-${pkgver}" pkgdesc='Easy aliasing of methods and attributes in Moose.' arch=('any') url="https://metacpan.org/release/$_module" @@ -13,14 +14,14 @@ license=('PerlArtistic' 'GPL') options=('!emptydirs') depends=('perl-moose>=2.0000') checkdepends=('perl-test-fatal' 'perl-test-output') -source=("http://search.cpan.org/CPAN/authors/id/$_author/$_module-$pkgver.tar.gz") +source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz") sha512sums=('5a999c417ea59aa609ad6f0f3e9d9f18aaeeb683f2e05255d8577608f4699a49befcd42ecb968064f9164e8355edf460be220f1b92415d020d4ce122d580ffcc') build() { ( unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT='1' PERL_AUTOINSTALL='--skipdeps' - cd "$_module-$pkgver" + cd "${_distdir}" /usr/bin/perl Makefile.PL make ) @@ -28,7 +29,7 @@ build() { check() { ( - cd "$_module-$pkgver" + cd "${_distdir}" unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT='1' make test @@ -37,7 +38,7 @@ check() { package() { ( - cd "$_module-$pkgver" + cd "${_distdir}" unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT make install INSTALLDIRS='vendor' DESTDIR="$pkgdir" find "$pkgdir" -name .packlist -o -name perllocal.pod -delete |