summaryrefslogtreecommitdiff
path: root/perl-pdl
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-pdl
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe.git.save-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-pdl')
-rw-r--r--perl-pdl/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-pdl/PKGBUILD b/perl-pdl/PKGBUILD
index 6f13fabc..56be2c73 100644
--- a/perl-pdl/PKGBUILD
+++ b/perl-pdl/PKGBUILD
@@ -3,6 +3,7 @@ pkgname=perl-pdl
_pkgname='PDL'
pkgver=2.016
pkgrel=1
+_distdir="${_pkgname}-${pkgver}"
pkgdesc="the Perl Data Language"
arch=('x86_64' 'i686')
url="http://pdl.perl.org/"
@@ -12,7 +13,7 @@ depends=('perl-devel-checklib' 'perl-astro-fits-header'
'hdf4' 'perl-gd')
makedepends=('perl-extutils-f77' 'perl-test-exception' 'perl-test-warn' 'perl-test-deep' 'perl-file-map')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_pkgname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_distdir}.tar.gz")
sha512sums=('7822e12688ed94c4c2fdd4937d7ec3869b08d9831ddd7307706e404e11c6f8b40792912d05b6022ede982ba870aae426141d0fd4030d43aef72ca0be46f673c8')
build() {
@@ -22,21 +23,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 pure_install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}