summaryrefslogblamecommitdiff
path: root/user/perl-eval-closure/APKBUILD
blob: 51ed39484bc694e5e680010d2f11b903eddc7b61 (plain) (tree)
1
2
3
4
5
6
7


                                                                   



                               





                                                                   
              
                                                 
                      
                          

                                                                                        

         




                                                                 



                 




                                                                                                                                                                       
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-eval-closure
_pkgreal=Eval-Closure
_author=DOY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.14
pkgrel=0
pkgdesc="Safely and cleanly create Perl closures using string eval"
url="https://metacpan.org/release/Eval-Closure"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test-fatal perl-test-requires"
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="fc55206bd39c4cb39360d06b6f39a65743f34b5e59d1a1ce99bf5831b9d88a03fb6dadf32fa9f0868e140fce719d53a7b13027f397cdd7f6ca05cc81277bdc08  Eval-Closure-0.14.tar.gz"