summaryrefslogtreecommitdiff
path: root/perl-extutils-f77/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-extutils-f77/PKGBUILD
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-extutils-f77/PKGBUILD')
-rw-r--r--perl-extutils-f77/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-extutils-f77/PKGBUILD b/perl-extutils-f77/PKGBUILD
index a1017780c..b270d3486 100644
--- a/perl-extutils-f77/PKGBUILD
+++ b/perl-extutils-f77/PKGBUILD
@@ -11,7 +11,8 @@ arch=('any')
url='https://metacpan.org/release/ExtUtils-F77'
license=('PerlArtistic' 'GPL')
depends=('perl' 'gcc-fortran')
-source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHM/ExtUtils-F77-${pkgver}.tar.gz)
+_distdir="ExtUtils-F77-${pkgver}"
+source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_distdir}.tar.gz)
options=(!emptydirs)
sha512sums=('0d7cf351d84676d3dea2ec781b1e230ab4a737d34de4c15c5045603ac6e6e411b5d9b235e68bb9ba0552cc4de0ea67c8355c160840b3205429802ea1569f0400')
@@ -21,20 +22,20 @@ sanitize() {
}
build() {
- cd ExtUtils-F77-${pkgver}
+ cd ${_distdir}
sanitize
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd ExtUtils-F77-${pkgver}
+ cd ${_distdir}
sanitize
F77LIBS='-lgfortran -lm' make test
}
package() {
- cd ExtUtils-F77-${pkgver}
+ cd ${_distdir}
sanitize
make install DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete