summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28503d9726441d10e3046f551677fa153b3cc370 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com>
# Contributor: Kent Fredric <kentnl@cpan.org>
# Contributor: Petrenko Alexey <alexey-p at uralweb dot ru>

pkgname=perl-devel-nytprof
pkgver=6.06
pkgrel=3
_author='T/TI/TIMB'
_perlmod='Devel-NYTProf'
pkgdesc='Devel::NYTProf - Powerful fast feature-rich perl source code profiler'
url='http://search.cpan.org/dist/Devel-NYTProf'
depends=(
perl-getopt-long
perl-test-simple
perl-xsloader
perl-test-differences
perl-file-which
perl-json-maybexs
zlib
)
checkdepends=(
# perl-moose
# perl-test-portability-files
perl-test-pod-coverage
perl-test-portability-files
)
makedepends=(perl-extutils-makemaker)
arch=('i686' 'x86_64')
license=('GPL')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps MODULEBUILDRC=/dev/null
build(){
  cd "$srcdir"/$_perlmod-$pkgver

  perl Makefile.PL
  make
}
check(){
  cd "$srcdir"/$_perlmod-$pkgver
#   HARNESS_OPTIONS=j10 make test
  make test
}
package(){
  cd "$srcdir"/$_perlmod-$pkgver
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"

  # remove perllocal.pod and .packlist
#   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
#   install -dm755 "$pkgdir"/usr/bin
  # for nytprofhtml
#   ln -s /usr/bin/vendor_perl/nytprofcalls "$pkgdir"/usr/bin/nytprofcalls
#   ln -s /usr/bin/vendor_perl/flamegraph.pl "$pkgdir"/usr/bin/flamegraph.pl
}
sha256sums=('a14227ca79f1750b92cc7b8b0a5806c92abc4964a21a7fb100bd4907d6c4be55')