2019-02-20 15:54:46 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE="https://tiswww.case.edu/php/chet/readline/rltop.html"
|
2017-12-05 22:33:04 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Library that allow users to edit command lines as they are typed in"
|
2019-02-20 15:54:46 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="bash (<< 5.0), readline-dev"
|
|
|
|
TERMUX_PKG_REPLACES="readline-dev"
|
2019-08-18 22:03:06 +02:00
|
|
|
_MAIN_VERSION=8.0
|
2020-02-10 13:10:43 +01:00
|
|
|
_PATCH_VERSION=4
|
2019-08-18 22:03:06 +02:00
|
|
|
TERMUX_PKG_VERSION=$_MAIN_VERSION.$_PATCH_VERSION
|
|
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/readline/readline-${_MAIN_VERSION}.tar.gz
|
2020-01-13 02:00:07 +01:00
|
|
|
TERMUX_PKG_SHA256=e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-curses --enable-multibyte bash_cv_wcwidth_broken=no"
|
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="SHLIB_LIBS=-lncursesw"
|
2018-01-14 22:20:48 +01:00
|
|
|
TERMUX_PKG_CONFFILES="etc/inputrc"
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-05-15 00:48:48 +02:00
|
|
|
termux_step_pre_configure() {
|
2019-08-18 22:03:06 +02:00
|
|
|
declare -A PATCH_CHECKSUMS
|
|
|
|
PATCH_CHECKSUMS[001]=d8e5e98933cf5756f862243c0601cb69d3667bb33f2c7b751fe4e40b2c3fd069
|
2020-02-10 13:10:43 +01:00
|
|
|
PATCH_CHECKSUMS[002]=36b0febff1e560091ae7476026921f31b6d1dd4c918dcb7b741aa2dad1aec8f7
|
|
|
|
PATCH_CHECKSUMS[003]=94ddb2210b71eb5389c7756865d60e343666dfb722c85892f8226b26bb3eeaef
|
|
|
|
PATCH_CHECKSUMS[004]=b1aa3d2a40eee2dea9708229740742e649c32bb8db13535ea78f8ac15377394c
|
2019-08-18 22:03:06 +02:00
|
|
|
for PATCH_NUM in $(seq -f '%03g' ${_PATCH_VERSION}); do
|
|
|
|
PATCHFILE=$TERMUX_PKG_CACHEDIR/readline_patch_${PATCH_NUM}.patch
|
|
|
|
termux_download \
|
|
|
|
"http://mirrors.kernel.org/gnu/readline/readline-$_MAIN_VERSION-patches/readline${_MAIN_VERSION/./}-$PATCH_NUM" \
|
|
|
|
$PATCHFILE \
|
|
|
|
${PATCH_CHECKSUMS[$PATCH_NUM]}
|
|
|
|
patch -p0 -i $PATCHFILE
|
|
|
|
done
|
|
|
|
|
2019-05-15 00:48:48 +02:00
|
|
|
CFLAGS+=" -fexceptions"
|
|
|
|
}
|
|
|
|
|
2017-09-14 22:32:41 +02:00
|
|
|
termux_step_post_make_install() {
|
|
|
|
mkdir -p $TERMUX_PREFIX/lib/pkgconfig
|
|
|
|
cp readline.pc $TERMUX_PREFIX/lib/pkgconfig/
|
2018-01-14 22:20:48 +01:00
|
|
|
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/inputrc $TERMUX_PREFIX/etc/
|
2017-09-14 22:32:41 +02:00
|
|
|
}
|