summaryrefslogblamecommitdiff
path: root/user/perl-app-licensecheck/APKBUILD
blob: 98e1339d7b48bfc6275665a6c84981bc6e725f3a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                 

                                                                   



                               
            

                                                                     
                                                   
             
                                                         
                  



                                                                     
                                                                                                         


                                                                              
                                                       
                      
                          

                                                                                         

         




                                                                 



                 



                                                                           
                                                                                                                                                                             
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-app-licensecheck
_pkgreal=App-Licensecheck
_author=JONASS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=3.1.1
pkgrel=0
pkgdesc="Perl library and utility for checking source-file licensing"
url="https://metacpan.org/release/App-Licensecheck"
arch="noarch"
options="!check" # spurious test failure in t/exception.t
license="GPL-3.0+"
depends="perl perl-array-intspan perl-encode-locale
	perl-getopt-long-descriptive perl-list-someutils perl-log-any
	perl-log-any-adapter-screen perl-moo perl-moox-struct
	perl-namespace-clean perl-path-iterator-rule perl-path-tiny
	perl-pod-constants perl-pod-parser perl-regexp-pattern>=0.2.12 perl-regexp-pattern-license>=3.4.0
	perl-re-engine-re2 perl-software-license perl-sort-key perl-strictures
	perl-string-copyright perl-string-escape perl-test-requires
	perl-test-script perl-try-tiny perl-universal-require"
checkdepends="perl-test-command-simple perl-pod-parser"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$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="c84aebc08019128b3aa812ba6e4f93d6d8ec8d6b31a405490609b80f03692d0f95e2ea1f9cad5eea6efa706d7837dca0b8ab1227065e3c5abbfa46e909831ea8  App-Licensecheck-v3.1.1.tar.gz"