summaryrefslogblamecommitdiff
path: root/user/perl-sub-quote/APKBUILD
blob: 608ea88eee42261abaad23d1e28e24f44e5be419 (plain) (tree)
1
2
3
4
5
6
7
8
                                       
                                                          
                      



                               
               



                                                             
                                       
              
                              
                      
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                        
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-sub-quote
_pkgreal=Sub-Quote
_author=HAARG
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.006006
pkgrel=0
pkgdesc="Efficient generation of subroutines via string eval"
url="https://metacpan.org/release/Sub-Quote"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl"
checkdepends="perl-test-fatal"
makedepends="perl-dev"
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="19cd0504f039f3218d3f47b3b44714f0baed73a13f97c4552eb1816b7b03186b1bbdf48cc70c2cae616eb9ec81721b30217c7f788176d389df694c9b355ead64  Sub-Quote-2.006006.tar.gz"