summaryrefslogtreecommitdiff
path: root/perl-astro-fits-header/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-astro-fits-header/PKGBUILD
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-astro-fits-header/PKGBUILD')
-rw-r--r--perl-astro-fits-header/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-astro-fits-header/PKGBUILD b/perl-astro-fits-header/PKGBUILD
index a679a1d51..92b648f44 100644
--- a/perl-astro-fits-header/PKGBUILD
+++ b/perl-astro-fits-header/PKGBUILD
@@ -11,7 +11,8 @@ depends=('perl')
makedepends=('perl-module-build')
checkdepends=('perl-starlink-ast' 'perl-astro-fits-cfitsio') # 'perl-gsd' 'perl-ndf')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/T/TJ/TJENNESS/${_pkgname}-${pkgver}.tar.gz")
+_distdir="${_pkgname}-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/T/TJ/TJENNESS/${_distdir}.tar.gz")
sha256sums=('530d59ef0c0935f9862d187187a2d7583b12c639bb67db14f983322b161892d9')
build() {
@@ -21,21 +22,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build.PL
perl Build
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
perl Build test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}