summaryrefslogtreecommitdiff
path: root/perl-data-printer/PKGBUILD
blob: 8d3e25ae7bfcedc5f9b35c425511b30012b526d9 (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
57
58
59
60
61
62
63
# Maintainer: Erich Eckner <arch at eckner dot net>
# Generator : neuesPerlPaket (53a4b3dbf91e50da515b6ec94fbd3044454d68ce67b4faf1406dd314dbd1c658a8b69f094c8647bc8e977b1abc69e4a04d8a638eae1861c5a8a4c44d81770a8f)

pkgname='perl-data-printer'
pkgver=0.40
pkgrel='3'
pkgdesc='colored pretty-print of Perl data structures and objects'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=(
  'perl'
  'perl-carp'
  'perl-clone-pp'
  'perl-file-homedir>=0.91'
  'perl-file-temp'
  'perl-package-stash>=0.3'
  'perl-pathtools'
  'perl-scalar-list-utils'
  'perl-sort-naturally'
  'perl-term-ansicolor>=3'
  'perl-test-simple>=0.88'
  'perl-version>=0.77')
makedepends=(
  'perl-extutils-makemaker')
checkdepends=(
  'perl-io-pty-easy'
  'perl-yaml-syck'
  'perl-file-which'
  'perl-capture-tiny'
  'perl-dbi'
)
url='https://metacpan.org/release/Data-Printer'
_distdir="Data-Printer-${pkgver}"
source=("https://cpan.metacpan.org/authors/id/G/GA/GARU/${_distdir}.tar.gz")
sha512sums=('9aa92013c4d1f43a654f2e40f797a20f2fc5576d9496bc40bfe4b63e3f2c5893ffb4b83aaeca9c27ca09ab248e18ec44c1a0ca5a34cf140f62522f7adf15f446')

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "${srcdir}/${_distdir}"
    perl Makefile.PL
    make
  )
}

check() {
  cd "${srcdir}/${_distdir}"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "${srcdir}/${_distdir}"
  make install

  find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}