diff options
Diffstat (limited to 'abs/core-testing/perl_modules/perl-term-readkey/PKGBUILD')
-rw-r--r-- | abs/core-testing/perl_modules/perl-term-readkey/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/core-testing/perl_modules/perl-term-readkey/PKGBUILD b/abs/core-testing/perl_modules/perl-term-readkey/PKGBUILD new file mode 100644 index 0000000..4c4fdee --- /dev/null +++ b/abs/core-testing/perl_modules/perl-term-readkey/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org> + +pkgname=perl-term-readkey +pkgver=2.30 +pkgrel=2 +pkgdesc="A perl module dedicated to providing 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') +options=('!emptydirs') +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 + + # remove perllocal.pod and .packlist + find ${startdir}/pkg -name perllocal.pod -delete + find ${startdir}/pkg -name .packlist -delete +} |