summaryrefslogtreecommitdiff
path: root/community/perl-term-readline-gnu/PKGBUILD
diff options
context:
space:
mode:
authorJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-12-04 20:19:54 -0600
committerJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-12-04 20:19:54 -0600
commit5b773bfc871ccd0dc540942508e7480c1cd63df2 (patch)
tree432ab7299f728cd5f078cd3e2bfa4f92e8d43487 /community/perl-term-readline-gnu/PKGBUILD
parent0cb1158276158c1c2f4bef15c278ffcaf8859172 (diff)
parent1d3002e46bb10b50ac35a99b6d2e672cb2c4b2f9 (diff)
Merge branch 'master' of gitpar:abslibre-mips64el
Conflicts: extra/seahorse/PKGBUILD
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
+}
+