libreadline8: verify patch's checksum

This commit is contained in:
Đoàn Trần Công Danh 2020-07-25 12:13:07 +07:00 committed by Piotr
parent 42db4f86a6
commit 5ad809e38b
1 changed files with 11 additions and 14 deletions

View File

@ -14,22 +14,19 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
checksum=e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
pre_configure() {
local url="${GNU_SITE}/readline/readline-${_dist_ver}-patches"
_url="${GNU_SITE}/readline/readline-${_dist_ver}-patches"
for _p in $(seq -w 001 ${_patch_ver}); do
distfiles+=" ${_url}/readline${_dist_ver/./}-${_p}"
skip_extraction+=" readline${_dist_ver/./}-${_p}"
done
unset _url
unset _p
cd ${XBPS_SRCDISTDIR}/${pkgname}-${version}
if [ "${_patch_ver}" -gt 000 ]; then
for p in $(seq -w 001 ${_patch_ver}); do
if [ -f readline${version/./}-${p} ]; then
continue
fi
local patch_url="${url}/readline${_dist_ver/./}-${p}"
msg_normal " Fetching ${patch_url} ...\n"
$XBPS_FETCH_CMD "${patch_url}"
done
fi
checksum="e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
d8e5e98933cf5756f862243c0601cb69d3667bb33f2c7b751fe4e40b2c3fd069"
post_patch() {
cd ${wrksrc}
for p in $(seq -w 001 ${_patch_ver}); do
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/${pkgname}-${version}/readline${_dist_ver/./}-${p}