summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-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;
}