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}