new: lfs/readline-8.2.13

This commit is contained in:
2024-11-13 02:45:49 -05:00
parent 04a4d04c37
commit 28aace1ca5

View File

@@ -0,0 +1,30 @@
pkgname=readline
_basever=8.2
_patchlevel=13
pkgver=${_basever}.${_patchlevel}
pkgdesc='GNU readline library'
homepage='https://tiswww.case.edu/php/chet/readline/rltop.html'
license=('GPL-3.0-only')
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://ftp.gnu.org/gnu/readline/readline-${pkgver}.tar.gz")
md5sums=("05080bf3801e6874bb115cd6700b708f")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf
}
src_build() {
./configure --prefix=/usr \
--disable-static \
--with-curses \
--docdir=/usr/share/doc/readline-8.2.13
make SHLIB_LIBS="-lncursesw"
}
src_install() {
make SHLIB_LIBS="-lncursesw" DESTDIR="$pkgdir" install
install -v -m644 doc/*.{ps,pdf,html,dvi} ${pkgdir}/usr/share/doc/readline-8.2.13
}