diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/perl-term-readline-gnu/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/perl-term-readline-gnu/PKGBUILD')
-rw-r--r-- | community/perl-term-readline-gnu/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/community/perl-term-readline-gnu/PKGBUILD b/community/perl-term-readline-gnu/PKGBUILD new file mode 100644 index 000000000..898aee284 --- /dev/null +++ b/community/perl-term-readline-gnu/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 91695 2013-05-26 09:26:04Z bluewind $ +# 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=6 +pkgdesc="GNU Readline XS library wrapper" +arch=('i686' 'x86_64') +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') + +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 "${srcdir}/Term-ReadLine-Gnu-1.20" + patch --forward -p1 < "${srcdir}/termcap-bad-ncurses-good.patch" + /usr/bin/perl Makefile.PL + make +} + +check() { + cd "${srcdir}/Term-ReadLine-Gnu-1.20" + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test +} + +package() { + cd "${srcdir}/Term-ReadLine-Gnu-1.20" + make pure_install PERL_INSTALL_ROOT="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + |