diff options
author | Erich Eckner <git@eckner.net> | 2016-04-05 16:04:27 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-05 16:04:27 +0200 |
commit | 09315a15861fbfad3d0fa2aa838d73c834f8eb1a (patch) | |
tree | a2bf8315d41e52b2ca2489cd6c9a79e5f380abe7 /perl-moosex-aliases/PKGBUILD | |
parent | 84edbec1bc03fb26f257b6c4b15693dd92a3fedb (diff) | |
download | archlinuxewe.git.save-09315a15861fbfad3d0fa2aa838d73c834f8eb1a.tar.xz |
perl-moosex-aliases neu
Diffstat (limited to 'perl-moosex-aliases/PKGBUILD')
-rw-r--r-- | perl-moosex-aliases/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/perl-moosex-aliases/PKGBUILD b/perl-moosex-aliases/PKGBUILD new file mode 100644 index 00000000..cc6825dc --- /dev/null +++ b/perl-moosex-aliases/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Stefan Göbel <aur —at— subtype —dot— de> + +pkgname='perl-moosex-aliases' +_module='MooseX-Aliases' +_author='D/DO/DOY' +pkgver='0.11' +pkgrel='1' +pkgdesc='Easy aliasing of methods and attributes in Moose.' +arch=('any') +url="https://metacpan.org/release/$_module" +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-moose>=2.0000') +checkdepends=('perl-moose' 'perl-test-fatal') +source=("http://search.cpan.org/CPAN/authors/id/$_author/$_module-$pkgver.tar.gz") +md5sums=('78376310deba54ca644292d44566cefa') + +build() { + ( + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT='1' PERL_AUTOINSTALL='--skipdeps' + cd "$_module-$pkgver" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + ( + cd "$_module-$pkgver" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT='1' + make test + ) +} + +package() { + ( + cd "$_module-$pkgver" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS='vendor' DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + ) +} + +#:indentSize=3:tabSize=3:noTabs=true:mode=shellscript:maxLineLen=87:
\ No newline at end of file |