# Automatically generated by apkbuild-cpan, template 1 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-term-readkey _pkgreal=TermReadKey pkgver=2.32 pkgrel=3 pkgdesc="Change terminal modes, and perform non-blocking reads" url="http://search.cpan.org/dist/TermReadKey/" arch="all" license="GPL PerlArtistic" cpandepends="" cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/$_pkgreal-$pkgver.tar.gz" _builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make -j1 && make test } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="c55420c3456b8e470a01d6557b1045a8 TermReadKey-2.32.tar.gz" sha256sums="58b90e8908e686d03a161590c1dd870e8a1b005715ca8e6d5080a32459e1e9f8 TermReadKey-2.32.tar.gz" sha512sums="35dc453146c24955663d58db36881df54bd8f1a7391add4a35e34e0e238d667bfe88b6b283571aedfe2935a1add61bf8ef68bc0e496a55804e229deaad42e756 TermReadKey-2.32.tar.gz"