summaryrefslogblamecommitdiff
path: root/user/perl-class-accessor/APKBUILD
blob: 2789669c981824e68d57de7f8a0f31b0459426e2 (plain) (tree)
1
2
3
4
5
6
7
                                             
                                                          
                           



                               




                                                 
                                       
                            

                                          

                                                                                        















                                                                                                                                                                         
# Contributor: Alyx Wolcott <alyx@leuhta.com>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-class-accessor
_pkgreal=Class-Accessor
_author=KASEI
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.51
pkgrel=0
pkgdesc="Perl class accessor generator"
url="https://metacpan.org/release/Class-Accessor"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-sub-name"
makedepends="perl-dev perl-module-install"
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="be11acea4747c59e3e524c75d818e0391756cbc08eebff71dca280e737ce228209e76310649298e536e07db1c856d5a71dd64aefc55b49e33cfcb2b3439eab0b  Class-Accessor-0.51.tar.gz"