summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-01-27 20:23:58 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-01-27 20:23:58 +0000
commit126b7a4adc5b554be1a108bc57192c0c55122b2e (patch)
treeb5d1f0e5cd615e28f0d4f1cd25fa2366dbc4ab0f
parent4c44387cdae423c79339dafa044980fd77ec422a (diff)
parentb0b8324362bee6196c365748970e4685f051db1a (diff)
downloadpackages-126b7a4adc5b554be1a108bc57192c0c55122b2e.tar.gz
packages-126b7a4adc5b554be1a108bc57192c0c55122b2e.tar.bz2
packages-126b7a4adc5b554be1a108bc57192c0c55122b2e.tar.xz
packages-126b7a4adc5b554be1a108bc57192c0c55122b2e.zip
Merge branch 'perl-term-readkey' into 'master'
user/perl-term-readkey: New package Two things about which I'm not sure: * `license="Artistic-1.0-Perl OR GPL-1.0-or-later"` appears to be the best description of the perl5 license, but I don't see any other user/perl-* packages using it. * Is `pkgname=perl-term-readkey` reasonable, or should it be `perl-termreadkey`? See merge request !152
-rw-r--r--user/perl-term-readkey/APKBUILD34
1 files changed, 34 insertions, 0 deletions
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 <aranea@aixah.de>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+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"