diff options
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/perl_modules/perl-term-readkey/PKGBUILD | 40 |
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 } |