From b0b8324362bee6196c365748970e4685f051db1a Mon Sep 17 00:00:00 2001 From: Luis Ressel Date: Wed, 23 Jan 2019 21:59:43 +0000 Subject: user/perl-term-readkey: New package --- user/perl-term-readkey/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-term-readkey/APKBUILD (limited to 'user/perl-term-readkey/APKBUILD') diff --git a/user/perl-term-readkey/APKBUILD b/user/perl-term-readkey/APKBUILD new file mode 100644 index 000000000..6b789b097 --- /dev/null +++ b/user/perl-term-readkey/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Luis Ressel +# Maintainer: Adélie Perl Team +pkgname=perl-term-readkey +_pkgreal=TermReadKey +pkgver=2.38 +pkgrel=0 +pkgdesc="Change terminal modes, and perform non-blocking reads" +url="https://metacpan.org/release/TermReadKey" +arch="all" +license="Artistic-1.0-Perl OR GPL-1.0+" +depends="perl" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="fb09f013f9f0d8a4397e39f6f3db7a6d023259219af8f76744094e396437a01b19141b3cdb39a158d3b518903fb010088bc37406763bfbeb3fcab810bb0bb157 TermReadKey-2.38.tar.gz" -- cgit v1.2.3-70-g09d2