summaryrefslogtreecommitdiff
path: root/perl-io-pty-easy/PKGBUILD
blob: b0196434df42be91f280de8a338d1ed30d840a06 (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: Erich Eckner <arch at eckner dot net>
# Generator : neuesPerlPaket (53a4b3dbf91e50da515b6ec94fbd3044454d68ce67b4faf1406dd314dbd1c658a8b69f094c8647bc8e977b1abc69e4a04d8a638eae1861c5a8a4c44d81770a8f)

pkgname='perl-io-pty-easy'
pkgver=0.10
pkgrel=9
pkgdesc='Easy interface to IO::Pty'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=(
  'perl>=5.34'
  'perl<5.35'
  'perl-base'
  'perl-carp'
  'perl-io-tty'
  'perl-scalar-list-utils')
makedepends=(
  'perl>=5.6.0'
  'perl-extutils-makemaker'
  'perl-io'
  'perl-pathtools'
  'perl-test-simple>=0.88')
checkdepends=()
url='https://metacpan.org/release/IO-Pty-Easy'
_distdir="IO-Pty-Easy-${pkgver}"
source=("https://cpan.metacpan.org/authors/id/D/DO/DOY/${_distdir}.tar.gz")
sha512sums=('122be11bb16b9b458babde372aafe36673af84ee70747455546a695358027122fc5630baaf8bac7d61e2855d97bf55d9c365ccd4679d6dc0e8891fada83b2ade')

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=""
    rm t/read-write.t
    make test
  )
}

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

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