summaryrefslogtreecommitdiff
path: root/perl-file-sharedir-install
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-file-sharedir-install
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-file-sharedir-install')
-rw-r--r--perl-file-sharedir-install/PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-file-sharedir-install/PKGBUILD b/perl-file-sharedir-install/PKGBUILD
index 38b86cf7c..3fc097c4c 100644
--- a/perl-file-sharedir-install/PKGBUILD
+++ b/perl-file-sharedir-install/PKGBUILD
@@ -3,7 +3,6 @@
# Contributor: AUR Perl <aurperl@juster.info>
_perlmod=File-ShareDir-Install
-_modnamespace=File
pkgname=perl-file-sharedir-install
pkgver=0.10
pkgrel=1
@@ -13,11 +12,12 @@ url="http://search.cpan.org/dist/${_perlmod}"
license=('GPL' 'PerlArtistic')
checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
options=('!emptydirs')
-source=("http://cpan.org/modules/by-module/${_modnamespace}/${_perlmod}-${pkgver}.tar.gz")
+_distdir="${_perlmod}-${pkgver}"
+source=("http://cpan.org/modules/by-module/${_perlmod%%-*}/${_distdir}.tar.gz")
sha512sums=('96c3a94da78e51c97223f16892c6bdb6a93f9602643aca6ee73fd661aefb0a018938f03b8265f255dc3daba467e01a2d2a924f33a5e1e4d2e9c9fe2698a3d09f')
build() {
- cd "${_perlmod}-${pkgver}"
+ cd "${_distdir}"
# Install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
@@ -25,11 +25,11 @@ build() {
}
check() {
- cd "${_perlmod}-${pkgver}"
+ cd "${_distdir}"
make test
}
package() {
- cd "${_perlmod}-${pkgver}"
+ cd "${_distdir}"
make install DESTDIR="${pkgdir}"
}