summaryrefslogtreecommitdiffstats
path: root/abs/core/readline
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/readline
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/readline')
-rw-r--r--abs/core/readline/PKGBUILD59
-rw-r--r--abs/core/readline/inputrc40
-rw-r--r--abs/core/readline/readline.install9
3 files changed, 108 insertions, 0 deletions
diff --git a/abs/core/readline/PKGBUILD b/abs/core/readline/PKGBUILD
new file mode 100644
index 0000000..0eb9b8f
--- /dev/null
+++ b/abs/core/readline/PKGBUILD
@@ -0,0 +1,59 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: judd <jvinet@zeroflux.org>
+pkgname=readline
+pkgver=5.2
+pkgrel=16
+pkgdesc="GNU readline library"
+arch=(i686 x86_64)
+url="ftp://ftp.cwru.edu/pub/bash/"
+license=('GPL')
+groups=('base')
+depends=(glibc ncurses)
+backup=("etc/inputrc")
+source=(ftp://ftp.cwru.edu/pub/bash/readline-${pkgver}.tar.gz
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-001
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-002
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-003
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-004
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-005
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-006
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-007
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-008
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-009
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-010
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-011
+ ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/readline52-012
+ inputrc)
+md5sums=('e39331f32ad14009b9ff49cc10c5e751'
+ '9d4d41622aa9b230c57f68548ce87d8f'
+ 'f03e512d14206e37f7d6a748b56b9476'
+ '252b42d8750f1a94b6bdf086612dceb2'
+ 'a32333c2e603a3ed250514e91050e552'
+ '8106796c09b789523a3a78ab69c04b6d'
+ '512188e2bf0837f7eca19dbf71f182ae'
+ 'ac17aca62eb6fb398c9f2fe9de540aff'
+ '2484c392db021905f112cf97a94dfd4c'
+ 'fc6eb35d07914fae5c57d49c12483ff7'
+ '7a2bf3dc7ac7680b1461a5701100e91b'
+ 'ef6cef6822663470f6ac8c517c5a7ec6'
+ 'e3e9f441c8111589855bc363e5640f6c'
+ 'e5fc955f56d9fa5beb871f3279b8fa8b')
+
+build() {
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ for i in 001 002 003 004 005 006 007 008 009 010 011 012; do
+ patch -Np2 -i ${startdir}/src/readline52-${i} || return 1
+ done
+ ./configure --prefix=/usr
+ make SHLIB_LIBS=-lncurses || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+
+ mkdir -p ${startdir}/pkg/etc
+ install -m644 ../inputrc ${startdir}/pkg/etc/inputrc
+
+ cd ${startdir}/pkg
+ mkdir -pv lib
+ mv -v usr/lib/lib{readline,history}.so.5* lib/
+ ln -svf ../../lib/libreadline.so.5 usr/lib/libreadline.so
+ ln -svf ../../lib/libhistory.so.5 usr/lib/libhistory.so
+}
diff --git a/abs/core/readline/inputrc b/abs/core/readline/inputrc
new file mode 100644
index 0000000..6ad9dd9
--- /dev/null
+++ b/abs/core/readline/inputrc
@@ -0,0 +1,40 @@
+# do not bell on tab-completion
+#set bell-style none
+
+set meta-flag on
+set input-meta on
+set convert-meta off
+set output-meta on
+
+$if mode=emacs
+
+# for linux console and RH/Debian xterm
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[7~": beginning-of-line
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+"\e[5C": forward-word
+"\e[5D": backward-word
+"\e\e[C": forward-word
+"\e\e[D": backward-word
+"\e[1;5C": forward-word
+"\e[1;5D": backward-word
+
+# for rxvt
+"\e[8~": end-of-line
+
+# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+
+# for freebsd console
+"\e[H": beginning-of-line
+"\e[F": end-of-line
+$endif
+
+# Include user-specific configuration
+$include ~/.inputrc
+
diff --git a/abs/core/readline/readline.install b/abs/core/readline/readline.install
new file mode 100644
index 0000000..6b5a1dc
--- /dev/null
+++ b/abs/core/readline/readline.install
@@ -0,0 +1,9 @@
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ echo ">> You can safely ignore any \"cannot open shared object\" errors you see above"
+}
+
+op=$1
+shift
+$op $*