readline 8.2.13-1
This commit is contained in:
parent
e891515336
commit
cd921e17d9
53
readline/PKGBUILD
Normal file
53
readline/PKGBUILD
Normal file
@ -0,0 +1,53 @@
|
||||
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||||
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||||
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||||
# then please put 'unknown'.
|
||||
|
||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||
pkgname=readline
|
||||
pkgver=8.2.13
|
||||
pkgrel=1
|
||||
pkgdesc="GNU readline library"
|
||||
arch=('x86_64')
|
||||
url="https://tiswww.case.edu/php/chet/readline/rltop.html"
|
||||
license=('GPL-3.0-only')
|
||||
depends=('glibc' 'ncurses')
|
||||
backup=(etc/inputrc)
|
||||
options=('!emptydirs')
|
||||
source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
|
||||
inputrc)
|
||||
sha256sums=(0e5be4d2937e8bd9b7cd60d46721ce79f88a33415dd68c2d738fb5924638f656
|
||||
36e9611f935ee108d161587b0615f9c390192ef4bbff6dc59b58671261029901)
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
sed -i '/MV.*old/d' Makefile.in
|
||||
sed -i '/{OLDSUFF}/c:' support/shlib-install
|
||||
|
||||
sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
CFLAGS="${CFLAGS} -fPIC"
|
||||
|
||||
${CONFIGURE} \
|
||||
--disable-static \
|
||||
--with-curses \
|
||||
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||||
|
||||
make SHLIB_LIBS="-lncursesw"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR=${pkgdir} SHLIB_LIBS="-lncursesw" install
|
||||
|
||||
install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
||||
install -v -m644 doc/*.{ps,pdf,html,dvi} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
||||
|
||||
install -vDm644 ${srcdir}/inputrc ${pkgdir}/etc/inputrc
|
||||
}
|
36
readline/inputrc
Normal file
36
readline/inputrc
Normal file
@ -0,0 +1,36 @@
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user