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-moosex-aliases/PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'perl-moosex-aliases') diff --git a/perl-moosex-aliases/PKGBUILD b/perl-moosex-aliases/PKGBUILD index cc305e35..994a4b71 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 -- cgit v1.2.3-54-g00ecf