2019-09-28 00:17:56 +08:00
|
|
|
# Description: Set of libraries that offers command-line editing and history capabilities
|
|
|
|
# URL:
|
2019-11-10 23:58:56 +08:00
|
|
|
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
|
2019-09-28 00:17:56 +08:00
|
|
|
# Depends on:
|
|
|
|
|
|
|
|
name=readline
|
2022-04-09 08:19:46 +08:00
|
|
|
version=8.1.2
|
2019-09-28 00:17:56 +08:00
|
|
|
release=1
|
|
|
|
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
sed -i '/MV.*old/d' Makefile.in
|
|
|
|
sed -i '/{OLDSUFF}/c:' support/shlib-install
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static
|
|
|
|
if [ -d /tools ]; then
|
|
|
|
make SHLIB_LIBS="-L/tools/lib -lncursesw"
|
|
|
|
make SHLIB_LIBS="-L/tools/lib -lncurses" DESTDIR=$PKG install
|
|
|
|
else
|
|
|
|
make SHLIB_LIBS="-lncursesw"
|
|
|
|
make SHLIB_LIBS="-lncurses" DESTDIR=$PKG install
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p $PKG/lib
|
|
|
|
mv -v $PKG/usr/lib/lib{readline,history}.so.* $PKG/lib
|
|
|
|
chmod -v u+w $PKG/lib/lib{readline,history}.so.*
|
|
|
|
ln -sfv ../../lib/$(readlink $PKG/usr/lib/libreadline.so) $PKG/usr/lib/libreadline.so
|
|
|
|
ln -sfv ../../lib/$(readlink $PKG/usr/lib/libhistory.so ) $PKG/usr/lib/libhistory.so
|
|
|
|
}
|