summaryrefslogblamecommitdiff
path: root/system/perl-test-needs/APKBUILD
blob: 0d098b55cb7a217a0bd994281a59bee788cb635a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                         
                                                                   
                       


                               
               
                                                                  
                                             

                      
              
                          
                                                                                        
         



                                                                 


                 


                                                                           
                                                                                                                                                                         
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-needs
_pkgreal=Test-Needs
_author=HAARG
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.002006
pkgrel=0
pkgdesc="Perl module for skipping tests when modules aren't found"
url="https://metacpan.org/release/Test-Needs"
arch="noarch"
license="Artistic-2.0"
depends="perl"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="d0c1c527f486250a5c1e4b6e34e4ddcb1e7ab9233f9535b877cc36c8577592be28bf5f78567f45ec0388b276333742d1d15d7841827b64a8d170f475bd4488b7  Test-Needs-0.002006.tar.gz"