aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-09-29 22:39:20 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-09-30 03:09:56 +0000
commit4e118eb6f493225b38412b8cc0d338a36f786cb7 (patch)
treec1e26b9a90ea6cc0ebda3f87c7151178ca35a328
parentb5a2bb6b7cd33d87e7ffd2bcf40323c8c181885d (diff)
downloadaports-4e118eb6f493225b38412b8cc0d338a36f786cb7.tar.gz
aports-4e118eb6f493225b38412b8cc0d338a36f786cb7.tar.bz2
aports-4e118eb6f493225b38412b8cc0d338a36f786cb7.tar.xz
main/perl-term-readkey: modernize and rebuild for perl 5.32
-rw-r--r--main/perl-term-readkey/APKBUILD36
1 files changed, 16 insertions, 20 deletions
diff --git a/main/perl-term-readkey/APKBUILD b/main/perl-term-readkey/APKBUILD
index 57457c503a..39707d4602 100644
--- a/main/perl-term-readkey/APKBUILD
+++ b/main/perl-term-readkey/APKBUILD
@@ -1,38 +1,34 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-term-readkey
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=TermReadKey
pkgver=2.38
-pkgrel=4
+pkgrel=5
pkgdesc="Change terminal modes, and perform non-blocking reads"
url="https://metacpan.org/release/TermReadKey/"
arch="all"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=""
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+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/J/JS/JSTOWE/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
-_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() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
}
-build() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make -j1 && make test
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}