summaryrefslogtreecommitdiff
path: root/perl-moosex-aliases/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'perl-moosex-aliases/PKGBUILD')
-rw-r--r--perl-moosex-aliases/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-moosex-aliases/PKGBUILD b/perl-moosex-aliases/PKGBUILD
index cc305e35..994a4b71 100644
--- a/perl-moosex-aliases/PKGBUILD
+++ b/perl-moosex-aliases/PKGBUILD
@@ -6,6 +6,7 @@ _module='MooseX-Aliases'
_author='D/DO/DOY'
pkgver='0.11'
pkgrel='3'
+_distdir="${_module}-${pkgver}"
pkgdesc='Easy aliasing of methods and attributes in Moose.'
arch=('any')
url="https://metacpan.org/release/$_module"
@@ -13,14 +14,14 @@ license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-moose>=2.0000')
checkdepends=('perl-test-fatal' 'perl-test-output')
-source=("http://search.cpan.org/CPAN/authors/id/$_author/$_module-$pkgver.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
sha512sums=('5a999c417ea59aa609ad6f0f3e9d9f18aaeeb683f2e05255d8577608f4699a49befcd42ecb968064f9164e8355edf460be220f1b92415d020d4ce122d580ffcc')
build() {
(
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT='1' PERL_AUTOINSTALL='--skipdeps'
- cd "$_module-$pkgver"
+ cd "${_distdir}"
/usr/bin/perl Makefile.PL
make
)
@@ -28,7 +29,7 @@ build() {
check() {
(
- cd "$_module-$pkgver"
+ cd "${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT='1'
make test
@@ -37,7 +38,7 @@ check() {
package() {
(
- cd "$_module-$pkgver"
+ cd "${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS='vendor' DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete