summaryrefslogtreecommitdiff
path: root/community/perl-term-readline-gnu/PKGBUILD
blob: ea03ba7f4c145fde3e4fbe4daf2e0d020280c2c9 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id: PKGBUILD 83559 2013-02-03 00:44:54Z dwallace $
# CPAN Name  : Term-ReadLine-Gnu
# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: jason ryan <jasonwryan@gmail.com>
# Contributor: AUR Perl <aurperl@juster.info>
# Generator  : CPANPLUS::Dist::Arch 1.15

pkgname=perl-term-readline-gnu
pkgver=1.20
pkgrel=5
pkgdesc="GNU Readline XS library wrapper"
arch=('i686' 'x86_64' 'mips64el')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=5.7')
url='http://search.cpan.org/dist/Term-ReadLine-Gnu'
source=('http://search.cpan.org/CPAN/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-1.20.tar.gz'
  'termcap-bad-ncurses-good.patch')
md5sums=('fa33510193b89a2ada74fcef00816322'
  'a000706b89792f822b5ec20baa370910')
_distdir="${srcdir}/Term-ReadLine-Gnu-1.20"

build() {
   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor"     \
      PERL_MB_OPT="--installdirs vendor" \
      MODULEBUILDRC=/dev/null

    cd "$_distdir"
    patch --forward -p1 < "${srcdir}/termcap-bad-ncurses-good.patch"
    /usr/bin/perl Makefile.PL
    make
  
}

check() {
  cd "$_distdir"
  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
}

package() {
  cd "$_distdir"
  make pure_install PERL_INSTALL_ROOT="$pkgdir"
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}