37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
41 lines
1.4 KiB
Bash
41 lines
1.4 KiB
Bash
TERMUX_PKG_HOMEPAGE="https://tiswww.case.edu/php/chet/readline/rltop.html"
|
|
TERMUX_PKG_DESCRIPTION="Library that allow users to edit command lines as they are typed in"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
|
|
TERMUX_PKG_BREAKS="bash (<< 5.0), readline-dev"
|
|
TERMUX_PKG_REPLACES="readline-dev"
|
|
_MAIN_VERSION=8.1
|
|
_PATCH_VERSION=0
|
|
TERMUX_PKG_VERSION=$_MAIN_VERSION.$_PATCH_VERSION
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/readline/readline-${_MAIN_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-curses --enable-multibyte bash_cv_wcwidth_broken=no"
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="SHLIB_LIBS=-lncursesw"
|
|
TERMUX_PKG_CONFFILES="etc/inputrc"
|
|
|
|
termux_step_pre_configure() {
|
|
declare -A PATCH_CHECKSUMS
|
|
|
|
#PATCH_CHECKSUMS[001]=
|
|
|
|
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
|
|
|
|
CFLAGS+=" -fexceptions"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
mkdir -p $TERMUX_PREFIX/lib/pkgconfig
|
|
cp readline.pc $TERMUX_PREFIX/lib/pkgconfig/
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc
|
|
cp $TERMUX_PKG_BUILDER_DIR/inputrc $TERMUX_PREFIX/etc/
|
|
}
|