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-module-compile/PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'perl-module-compile') diff --git a/perl-module-compile/PKGBUILD b/perl-module-compile/PKGBUILD index 3f00f182..77f668e0 100644 --- a/perl-module-compile/PKGBUILD +++ b/perl-module-compile/PKGBUILD @@ -3,6 +3,7 @@ pkgname=perl-module-compile _pkgname='Module-Compile' pkgver=0.35 pkgrel=1 +_distdir="${_pkgname}-${pkgver}" pkgdesc="Perl Module Compilation" arch=('any') url="http://pdl.perl.org/" @@ -10,7 +11,7 @@ license=('GPL' 'PerlArtistic') depends=('perl') makedepends=('perl-digest-sha1') options=('!emptydirs') -source=("http://search.cpan.org/CPAN/authors/id/I/IN/INGY/${_pkgname}-${pkgver}.tar.gz") +source=("http://search.cpan.org/CPAN/authors/id/I/IN/INGY/${_distdir}.tar.gz") sha256sums=('224205297e1d85e4c7821e551d94fa76c43f9b89a0c6fbb0b4a741ced5d896cb') build() { @@ -20,21 +21,21 @@ build() { PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ MODULEBUILDRC=/dev/null - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/${_distdir}" /usr/bin/perl Makefile.PL make ) } check() { - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/${_distdir}" ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" make test ) } package() { - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/${_distdir}" make install find "$pkgdir" -name .packlist -o -name perllocal.pod -delete } -- cgit v1.2.3-54-g00ecf