upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / perl-class-method-modifiers / trunk / PKGBUILD
blobc507097cc6512d720f373a9f654734e7e8c00df3
1 # Maintainer: Moritz Bunkus <moritz@bunkus.org>
3 pkgname='perl-class-method-modifiers'
4 pkgver=2.15
5 pkgrel=1
6 pkgdesc="provides Moose-like method modifiers"
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl')
11 makedepends=('perl-test-fatal' 'perl-test-requires' 'perl-test-needs')
12 url='https://search.cpan.org/dist/Class-Method-Modifiers'
13 source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Method-Modifiers-${pkgver}.tar.gz")
14 sha512sums=('427d21418516ff296b5a536a2d1f13b81b92d36f1c17c2366bc65fd2f05bf6afc7d02a4257033f53ee14d806b43e8d4322c6eac256d1c0e892926c4e7f878995')
16 build() {
17   cd "${srcdir}/Class-Method-Modifiers-${pkgver}"
18   export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
19     PERL_AUTOINSTALL=--skipdeps \
20     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
21     PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
22     MODULEBUILDRC=/dev/null
23   perl Makefile.PL
24   make
27 check() {
28   cd "${srcdir}/Class-Method-Modifiers-${pkgver}"
29   export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
30     PERL_AUTOINSTALL=--skipdeps \
31     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
32     PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
33     MODULEBUILDRC=/dev/null
34   make test
37 package() {
38   cd "${srcdir}/Class-Method-Modifiers-${pkgver}"
39   export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
40     PERL_AUTOINSTALL=--skipdeps \
41     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
42     PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
43     MODULEBUILDRC=/dev/null
44   make install
45   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
48 # Local Variables:
49 # mode: shell-script
50 # sh-basic-offset: 2
51 # End:
52 # vim:set ts=2 sw=2 et: