summaryrefslogtreecommitdiff
path: root/user/perl-devel-nytprof/APKBUILD
blob: 3d6e56a1df4e80c6d0ca68dd6d24a84013170bb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=perl-devel-nytprof
_pkgreal=Devel-NYTProf
_author=JKEENAN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=6.11
pkgrel=0
pkgdesc="Powerful, fast, feature-rich Perl source code profiler"
url="https://metacpan.org/release/Devel-NYTProf"
arch="all"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl perl-file-which perl-json-maybexs"
checkdepends="perl-test-differences"
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="ce364f312fbf2c95be19ad713bfb1c1d5ffed70753a83181169a9544af2bd00b7eb29f135a5e93c834912df23619d769645acfe7bb1225a45ef6b43d2cbeb098  Devel-NYTProf-6.11.tar.gz"