summaryrefslogblamecommitdiff
path: root/user/perl-class-method-modifiers/APKBUILD
blob: 7d22c357d197cab1d909a8edb594703df9e25d41 (plain) (tree)

































                                                                                                                                                                                 
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-class-method-modifiers
pkgver=2.12
pkgrel=0
pkgdesc="Provides Moose-like method modifiers"
url="https://metacpan.org/pod/Class::Method::Modifiers"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-requires perl-test-fatal"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Method-Modifiers-$pkgver.tar.gz"
builddir="$srcdir/Class-Method-Modifiers-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="18c7cdff214d39a475b116cc5e6dda043c31765bcdfa9a1fa7242ce61e42583c4981d41a43ba556fb5a057e0cfbd5e52dd60048ea7dfae0fec3618dc47876dd4  Class-Method-Modifiers-2.12.tar.gz"