upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / perl-sub-handlesvia / trunk / PKGBUILD
blobf2cd06e0e959a6b2643c271d4f1168bd6f00f086
1 pkgname=perl-sub-handlesvia
2 _cpanname=Sub-HandlesVia
3 pkgver=0.016
4 pkgrel=3
5 pkgdesc='Perl extension for easily overriding subroutines'
6 url='https://metacpan.org/release/Sub-HandlesVia'
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 depends=('perl' 'perl-moo' 'perl-mouse' 'perl-exporter-tiny' 'perl-type-tiny' 'perl-class-tiny')
10 checkdepends=('perl-test-requires' 'perl-test-fatal')
11 options=('!emptydirs')
12 source=(https://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/${_cpanname}-${pkgver}.tar.gz)
13 sha512sums=('91932d7c56e4fc1bb9e737282ee45ffdcc6d4143ee0307cbcbee9fb3b3953bd955b62bc20809cef61d4e643a4d246dbab062a636a46f951a93bdf2f22a1b04d2')
15 build() {
16   cd ${_cpanname}-${pkgver}
17   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
18   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
19   make
22 check() {
23   cd ${_cpanname}-${pkgver}
24   make test
27 package() {
28   cd ${_cpanname}-${pkgver}
29   make DESTDIR="${pkgdir}" install