From 2060da17640e65eec4ec3c0e7d5e08f55b463b98 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 31 May 2018 16:33:14 +0000 Subject: perl-term-readkey: update to 2.37 --- abs/core/perl_modules/perl-term-readkey/PKGBUILD | 45 ++++++++++++++---------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/abs/core/perl_modules/perl-term-readkey/PKGBUILD b/abs/core/perl_modules/perl-term-readkey/PKGBUILD index 33397b2..aeda3a6 100644 --- a/abs/core/perl_modules/perl-term-readkey/PKGBUILD +++ b/abs/core/perl_modules/perl-term-readkey/PKGBUILD @@ -1,36 +1,43 @@ # $Id$ -# Maintainer: kevin +# Maintainer: Felix Yan +# Contributor: kevin # Contributor: Wael Nasreddine -# Contributor: Francois Charette +# Contributor: Francois Charette pkgname=perl-term-readkey _realname=TermReadKey -pkgver=2.30.01 +pkgver=2.37 pkgrel=4 pkgdesc="Provides simple control over terminal driver modes" -arch=('i686' 'x86_64') +arch=('x86_64') license=('custom') -depends=('perl>=5.10.0' 'glibc') -url="http://search.cpan.org/~stsi/${_realname}/" -source=(http://search.cpan.org/CPAN/authors/id/S/ST/STSI/${_realname}-$pkgver.tar.gz) +depends=('perl' 'glibc') +url="http://search.cpan.org/~jstowe/${_realname}/" options=('!emptydirs') -md5sums=('6c099eddb76ec9b92179f1ed929be71a') +source=(http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/${_realname}-$pkgver.tar.gz) +md5sums=('e8ea15c16333ac4f8d146d702e83cc0c') -build() -{ - cd ${srcdir}/TermReadKey-$pkgver +build() { + cd "${srcdir}/TermReadKey-$pkgver" perl Makefile.PL INSTALLDIRS=vendor make +} + +check() { + cd "${srcdir}/TermReadKey-$pkgver" make test } package() { - cd ${srcdir}/TermReadKey-$pkgver - make DESTDIR=${pkgdir} install - install -d ${pkgdir}/usr/share/licenses/$pkgname/ - head -7 README > ${pkgdir}/usr/share/licenses/$pkgname/LICENSE - - # remove perllocal.pod and .packlist - find ${pkgdir} -name perllocal.pod -delete - find ${pkgdir} -name .packlist -delete + cd "${srcdir}/TermReadKey-$pkgver" + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}/usr/share/licenses/$pkgname/" + head -7 README > "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; } -- cgit v0.12