summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-term-readkey/PKGBUILD
blob: 4c4fdee0040dc1934f9f69ae526ba2e198990fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}