Skip to content

Instantly share code, notes, and snippets.

@obilodeau obilodeau/PKGBUILD
Created Aug 9, 2018

Embed
What would you like to do?
perl-moosex-getopt 0.72
# CPAN Name : MooseX::Getopt
# Contributor: Anton Leontiev <scileont /at/ gmail.com>
# Generator : CPANPLUS::Dist::Arch 1.32
pkgname=perl-moosex-getopt
pkgver=0.72
pkgrel=1
pkgdesc='A Moose role for processing command line options'
arch=('any')
url='https://metacpan.org/release/MooseX-Getopt'
license=('PerlArtistic' 'GPL')
makedepends=('perl-module-build-tiny>=0.039')
depends=(
'perl>=5.8.9'
'perl-getopt-long-descriptive>=0.088'
'perl-moose>=0.56'
'perl-moosex-role-parameterized'
'perl-try-tiny')
checkdepends=(
'perl>=5.10.1'
'perl-cpan-meta-check>=0.007'
'perl-module-runtime'
'perl-path-tiny>=0.009'
'perl-test-checkdeps>=0.006'
'perl-test-deep'
'perl-test-fatal>=0.003'
'perl-test-needs'
'perl-test-requires'
'perl-test-trap'
'perl-test-warnings'
'perl-namespace-autoclean')
source=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/MooseX-Getopt-0.72.tar.gz)
options=(!emptydirs)
md5sums=('db096da80c503d635c21c1c73691b03a')
sha256sums=('a378411a061ed239554d2b7f86b2b82bf55f600901243a6ec3fd29557d171b2e')
sanitize() {
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
}
build() {
cd MooseX-Getopt-0.72
sanitize
perl Build.PL --installdirs vendor --destdir "$pkgdir"
perl Build
}
check() {
cd MooseX-Getopt-0.72
sanitize
perl Build test
}
package() {
cd MooseX-Getopt-0.72
sanitize
perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
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.