Skip to content

Instantly share code, notes, and snippets.

@jnbek jnbek/PKGBUILD
Created Apr 18, 2017

Embed
What would you like to do?
perl-moosex-lazyrequire PKGBUILD
pkgname='perl-moosex-lazyrequire'
pkgver='0.11'
pkgrel='1'
pkgdesc="Required attributes which fail only when trying to use them"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-moose>=0.94' 'perl-aliased>=0.30' 'perl-namespace-autoclean')
makedepends=()
checkdepends=('perl-test-fatal')
url='https://metacpan.org/release/MooseX-LazyRequire'
source=('http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/MooseX-LazyRequire-0.11.tar.gz')
md5sums=('89f708cadb6b524340b01e47c3c44969')
sha512sums=('aec29204be8f023a63fa9e313ac5fa5374c985517eca5a022b4b518495b4158a71b49f36819e954a8f03cf35dd0fb5a183904797e022beeb1a35de7a5532cc14')
_distdir="MooseX-LazyRequire-0.11"
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
cd "$srcdir/$_distdir"
/usr/bin/perl Makefile.PL
make
)
}
check() {
cd "$srcdir/$_distdir"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
cd "$srcdir/$_distdir"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.