libreadline8: verify patch's checksum
This commit is contained in:
parent
42db4f86a6
commit
5ad809e38b
|
@ -14,22 +14,19 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
|
homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
|
||||||
distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
|
distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
|
||||||
checksum=e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
|
|
||||||
|
|
||||||
pre_configure() {
|
_url="${GNU_SITE}/readline/readline-${_dist_ver}-patches"
|
||||||
local url="${GNU_SITE}/readline/readline-${_dist_ver}-patches"
|
for _p in $(seq -w 001 ${_patch_ver}); do
|
||||||
|
distfiles+=" ${_url}/readline${_dist_ver/./}-${_p}"
|
||||||
cd ${XBPS_SRCDISTDIR}/${pkgname}-${version}
|
skip_extraction+=" readline${_dist_ver/./}-${_p}"
|
||||||
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
|
done
|
||||||
fi
|
unset _url
|
||||||
|
unset _p
|
||||||
|
|
||||||
|
checksum="e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
|
||||||
|
d8e5e98933cf5756f862243c0601cb69d3667bb33f2c7b751fe4e40b2c3fd069"
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
cd ${wrksrc}
|
cd ${wrksrc}
|
||||||
for p in $(seq -w 001 ${_patch_ver}); do
|
for p in $(seq -w 001 ${_patch_ver}); do
|
||||||
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/${pkgname}-${version}/readline${_dist_ver/./}-${p}
|
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/${pkgname}-${version}/readline${_dist_ver/./}-${p}
|
||||||
|
|
Loading…
Reference in New Issue