# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-io-tty #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=IO-Tty pkgver=1.17 pkgrel=2 pkgdesc="Pseudo ttys and constants" url="https://metacpan.org/release/IO-Tty/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/T/TO/TODDR/IO-Tty-$pkgver.tar.gz disable-failing-test.patch" builddir="$srcdir/$_pkgreal-$pkgver" # On the builders, tests fail randomly on ARM when using Perl 5.36.0 # Error: "Failed test '$maxlen >= 200 (41)' at t/test.t line 235." case "$CARCH" in arm*|aarch64) options="$options !check" ;; esac build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" a9a53670d579684af1ca0d6e77bd74430c801174c59421139f79a19e76377d40055b74a8b1ef92d8601ca5bda2f911cba99a0bda0c24cf847bacac3df2314d37 IO-Tty-1.17.tar.gz 37c8aae630d4ee80b20b3540ed7fb5840b9a995e2ee489cbad8ace503ac9f596b38d01cb46e55d339898cc60d23581b451b71b27a6b871bc8ef84d1be2600427 disable-failing-test.patch "