summaryrefslogtreecommitdiff
path: root/community/perl-term-readline-gnu/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-term-readline-gnu/PKGBUILD')
-rw-r--r--community/perl-term-readline-gnu/PKGBUILD49
1 files changed, 49 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..4a1ee0bc0
--- /dev/null
+++ b/community/perl-term-readline-gnu/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 80447 2012-11-21 22:59:31Z 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=4
+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')
+_distdir="${srcdir}/Term-ReadLine-Gnu-1.20"
+
+build() {
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ 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 install
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+