mpv: Update from 0.27.1 to 0.27.2
[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 that allow users to edit command lines as they are typed in"
3 TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
4 _MAIN_VERSION=7.0
5 _PATCH_VERSION=3
6 TERMUX_PKG_VERSION=${_MAIN_VERSION}.${_PATCH_VERSION}
7 TERMUX_PKG_REVISION=2
8 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/readline/readline-${_MAIN_VERSION}.tar.gz
9 TERMUX_PKG_SHA256=750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-curses --enable-multibyte bash_cv_wcwidth_broken=no"
11 TERMUX_PKG_EXTRA_MAKE_ARGS="SHLIB_LIBS=-lncursesw"
12 TERMUX_PKG_CONFFILES="etc/inputrc"
13
14 termux_step_pre_configure () {
15 local PATCH_CHECKSUMS
16 PATCH_CHECKSUMS[1]=9ac1b3ac2ec7b1bf0709af047f2d7d2a34ccde353684e57c6b47ebca77d7a376
17 PATCH_CHECKSUMS[2]=8747c92c35d5db32eae99af66f17b384abaca961653e185677f9c9a571ed2d58
18 PATCH_CHECKSUMS[3]=9e43aa93378c7e9f7001d8174b1beb948deefa6799b6f581673f465b7d9d4780
19 for patch_number in `seq -f '%03g' ${_PATCH_VERSION}`; do
20 PATCHFILE=$TERMUX_PKG_CACHEDIR/readline_patch_${patch_number}.patch
21 termux_download \
22 "https://mirrors.kernel.org/gnu/readline/readline-7.0-patches/readline70-$patch_number" \
23 $PATCHFILE \
24 ${PATCH_CHECKSUMS[patch_number]}
25 patch -p0 -i $PATCHFILE
26 done
27 }
28
29 termux_step_post_make_install() {
30 mkdir -p $TERMUX_PREFIX/lib/pkgconfig
31 cp readline.pc $TERMUX_PREFIX/lib/pkgconfig/
32
33 mkdir -p $TERMUX_PREFIX/etc
34 cp $TERMUX_PKG_BUILDER_DIR/inputrc $TERMUX_PREFIX/etc/
35 }