From 5ad809e38b510f5ad7e073f9080ce8b90317c48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 25 Jul 2020 12:13:07 +0700 Subject: [PATCH] libreadline8: verify patch's checksum --- srcpkgs/libreadline8/template | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/srcpkgs/libreadline8/template b/srcpkgs/libreadline8/template index 6200195be9e..c351f0db6e2 100644 --- a/srcpkgs/libreadline8/template +++ b/srcpkgs/libreadline8/template @@ -14,22 +14,19 @@ maintainer="Orphaned " 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}