summaryrefslogblamecommitdiff
path: root/user/perl-indirect/APKBUILD
blob: 54e814d1e4e3ad0ebe8994cd9d09c7a00d8139a3 (plain) (tree)
































                                                                                                                                                                   
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-indirect
pkgver=0.38
pkgrel=0
pkgdesc="Perl module for lexically warning about indirect method calls"
url="https://metacpan.org/pod/indirect"
arch="all"
license="Artistic-1.0-Perl"
depends=""
makedepends="perl-dev perl-extutils-depends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/V/VP/VPIT/indirect-$pkgver.tar.gz"
builddir="$srcdir/indirect-$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="1ae363d2b2961be8495168a870bf941953a7845b0f3e9c7e9b267affc0b0392e1747ca4edd484ac98ddeef70b1a1cf28672bf1b9289847cb193409914e2f4673  indirect-0.38.tar.gz"