summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-31 16:33:14 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-31 16:33:14 (GMT)
commit2060da17640e65eec4ec3c0e7d5e08f55b463b98 (patch)
tree4831a926704209067860e99ddbe5748a8e6620bc /abs/core/perl_modules
parent13800b5d64bff0627aafa024e711db706d6912d2 (diff)
downloadlinhes_pkgbuild-2060da17640e65eec4ec3c0e7d5e08f55b463b98.zip
linhes_pkgbuild-2060da17640e65eec4ec3c0e7d5e08f55b463b98.tar.gz
linhes_pkgbuild-2060da17640e65eec4ec3c0e7d5e08f55b463b98.tar.bz2
perl-term-readkey: update to 2.37
Diffstat (limited to 'abs/core/perl_modules')
-rw-r--r--abs/core/perl_modules/perl-term-readkey/PKGBUILD45
1 files 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 <kevin@archlinux.org>
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: kevin <kevin@archlinux.org>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
-# Contributor: Francois Charette <francois.archlinux.org>
+# Contributor: Francois Charette <francois.archlinux.org>
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;
}