Initial push
[termux-packages] / packages / readline / build.sh
1 TERMUX_PKG_HOMEPAGE=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
2 TERMUX_PKG_DESCRIPTION="Library providing a set of functions for use by applications that allow users to edit command lines as they are typed in"
3 TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
4 _MAIN_VERSION=6.3
5 _PATCH_VERSION=8
6 TERMUX_PKG_VERSION=${_MAIN_VERSION}.${_PATCH_VERSION}
7 TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/readline/readline-${_MAIN_VERSION}.tar.gz
8
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-curses --enable-multibyte bash_cv_wcwidth_broken=no"
10 TERMUX_PKG_EXTRA_MAKE_ARGS="SHLIB_LIBS=-lncursesw"
11
12 termux_step_pre_configure () {
13 cd $TERMUX_PKG_SRCDIR
14 for patch_number in `seq -f '%03g' ${_PATCH_VERSION}`; do
15 PATCHFILE=$TERMUX_PKG_CACHEDIR/readline_patch_${patch_number}.patch
16 test ! -f $PATCHFILE && curl "http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-$patch_number" > $PATCHFILE
17 patch -p0 -i $PATCHFILE
18 done
19 }