[arch-commits] Commit in perl-term-readkey/repos (4 files)
Felix Yan
fyan at archlinux.org
Wed May 11 04:37:26 UTC 2016
Date: Wednesday, May 11, 2016 @ 06:37:26
Author: fyan
Revision: 267732
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
perl-term-readkey/repos/staging-i686/
perl-term-readkey/repos/staging-i686/PKGBUILD
(from rev 267731, perl-term-readkey/trunk/PKGBUILD)
perl-term-readkey/repos/staging-x86_64/
perl-term-readkey/repos/staging-x86_64/PKGBUILD
(from rev 267731, perl-term-readkey/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 88 insertions(+)
Copied: perl-term-readkey/repos/staging-i686/PKGBUILD (from rev 267731, perl-term-readkey/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2016-05-11 04:37:26 UTC (rev 267732)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+# Contributor: Wael Nasreddine <gandalf at siemens-mobiles.org>
+# Contributor: Francois Charette <francois.archlinux.org>
+
+pkgname=perl-term-readkey
+_realname=TermReadKey
+pkgver=2.33
+pkgrel=2
+pkgdesc="Provides simple control over terminal driver modes"
+arch=('i686' 'x86_64')
+license=('custom')
+depends=('perl' 'glibc')
+url="http://search.cpan.org/~jstowe/${_realname}/"
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/${_realname}-$pkgver.tar.gz)
+md5sums=('1b60aa12b05b5c59d09061fa03087fdb')
+
+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
+ chmod 755 "${pkgdir}/usr/lib/perl5/vendor_perl/auto/Term/ReadKey/ReadKey.so"
+ 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;
+}
Copied: perl-term-readkey/repos/staging-x86_64/PKGBUILD (from rev 267731, perl-term-readkey/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2016-05-11 04:37:26 UTC (rev 267732)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+# Contributor: Wael Nasreddine <gandalf at siemens-mobiles.org>
+# Contributor: Francois Charette <francois.archlinux.org>
+
+pkgname=perl-term-readkey
+_realname=TermReadKey
+pkgver=2.33
+pkgrel=2
+pkgdesc="Provides simple control over terminal driver modes"
+arch=('i686' 'x86_64')
+license=('custom')
+depends=('perl' 'glibc')
+url="http://search.cpan.org/~jstowe/${_realname}/"
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/${_realname}-$pkgver.tar.gz)
+md5sums=('1b60aa12b05b5c59d09061fa03087fdb')
+
+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
+ chmod 755 "${pkgdir}/usr/lib/perl5/vendor_perl/auto/Term/ReadKey/ReadKey.so"
+ 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;
+}
More information about the arch-commits
mailing list