readline: curl -> termux_download

This commit is contained in:
Fredrik Fornwall 2017-01-11 02:11:14 -05:00
parent 2b8761e6a3
commit b67df7238b
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ termux_step_pre_configure () {
cd $TERMUX_PKG_SRCDIR
for patch_number in `seq -f '%03g' ${_PATCH_VERSION}`; do
PATCHFILE=$TERMUX_PKG_CACHEDIR/readline_patch_${patch_number}.patch
test ! -f $PATCHFILE && curl "https://mirrors.kernel.org/gnu/readline/readline-7.0-patches/readline70-$patch_number" > $PATCHFILE
test ! -f $PATCHFILE && termux_download \
"https://mirrors.kernel.org/gnu/readline/readline-7.0-patches/readline70-$patch_number" \
$PATCHFILE
patch -p0 -i $PATCHFILE
done
}