# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Charles Mauch <cmauch@gmail.com>

pkgname=perl-io-tty
pkgver=1.31
pkgrel=1
pkgdesc="Provide an interface to TTYs and PTYs"
arch=('x86_64' 'aarch64')
url="https://search.cpan.org/dist/IO-Tty/"
license=("GPL-1.0-or-later" "Artistic-1.0-Perl")
depends=('glibc')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/T/TO/TODDR/IO-Tty-$pkgver.tar.gz")
sha256sums=('d597af221628571cbecf35b44520148c44798dfc8a9867774e60453f79d25ff7')

build() {
  cd "$srcdir"/IO-Tty-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}
package() {
  cd "$srcdir"/IO-Tty-$pkgver
  make install DESTDIR="$pkgdir"
}
