summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-term-readkey
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-05 00:25:53 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-05 00:25:53 (GMT)
commitdb7680fe145f7090334baa31ff8145278a255507 (patch)
treeebe9d3af6e48d0b0e62b8dab7afb7e469d224e27 /abs/core/perl_modules/perl-term-readkey
parentcba3949376b9d4e976a57f1e57623978cb476cfd (diff)
parent9e83df866147c642659e76ba24928da80262142c (diff)
downloadlinhes_pkgbuild-db7680fe145f7090334baa31ff8145278a255507.zip
linhes_pkgbuild-db7680fe145f7090334baa31ff8145278a255507.tar.gz
linhes_pkgbuild-db7680fe145f7090334baa31ff8145278a255507.tar.bz2
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/perl_modules/perl-term-readkey')
-rw-r--r--abs/core/perl_modules/perl-term-readkey/PKGBUILD40
1 files changed, 24 insertions, 16 deletions
diff --git a/abs/core/perl_modules/perl-term-readkey/PKGBUILD b/abs/core/perl_modules/perl-term-readkey/PKGBUILD
index 4c4fdee..33397b2 100644
--- a/abs/core/perl_modules/perl-term-readkey/PKGBUILD
+++ b/abs/core/perl_modules/perl-term-readkey/PKGBUILD
@@ -1,28 +1,36 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# $Id$
+# Maintainer: kevin <kevin@archlinux.org>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
+# Contributor: Francois Charette <francois.archlinux.org>
pkgname=perl-term-readkey
-pkgver=2.30
-pkgrel=2
-pkgdesc="A perl module dedicated to providing simple control over terminal driver modes."
+_realname=TermReadKey
+pkgver=2.30.01
+pkgrel=4
+pkgdesc="Provides simple control over terminal driver modes"
arch=('i686' 'x86_64')
license=('custom')
depends=('perl>=5.10.0' 'glibc')
-url="http://cpan.org/modules/by-module/Term"
-source=(http://cpan.org/modules/by-module/Term/TermReadKey-$pkgver.tar.gz)
-md5sums=('f0ef2cea8acfbcc58d865c05b0c7e1ff')
+url="http://search.cpan.org/~stsi/${_realname}/"
+source=(http://search.cpan.org/CPAN/authors/id/S/ST/STSI/${_realname}-$pkgver.tar.gz)
options=('!emptydirs')
+md5sums=('6c099eddb76ec9b92179f1ed929be71a')
+
build()
{
- cd $startdir/src/TermReadKey-$pkgver
- # install module in vendor directories.
- perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make DESTDIR=$startdir/pkg install || return 1
- install -d $startdir/pkg/usr/share/licenses/$pkgname/
- head -7 README > $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+ cd ${srcdir}/TermReadKey-$pkgver
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
+ 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 ${startdir}/pkg -name perllocal.pod -delete
- find ${startdir}/pkg -name .packlist -delete
+ find ${pkgdir} -name perllocal.pod -delete
+ find ${pkgdir} -name .packlist -delete
}