diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-11-03 07:05:22 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-11-03 07:05:22 +0000 |
commit | a53c26bd6163c23222843c95f190b85db80e99e6 (patch) | |
tree | b736f03b118ab4c2269431bcbe21d3c9a75e90b9 /subr | |
parent | 1eef61b593d182895ebab552c974dfb35a2aa831 (diff) | |
download | midipix_build-a53c26bd6163c23222843c95f190b85db80e99e6.tar.bz2 midipix_build-a53c26bd6163c23222843c95f190b85db80e99e6.tar.xz |
subr/pkg_fetch_extract.subr: copy chainport patch to ${PKG_BASE_DIR}/${PKG_SUBDIR}/patches/ (via midipix.)
Diffstat (limited to 'subr')
-rw-r--r-- | subr/pkg_fetch_extract.subr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/subr/pkg_fetch_extract.subr b/subr/pkg_fetch_extract.subr index 111b7271..bb54c87f 100644 --- a/subr/pkg_fetch_extract.subr +++ b/subr/pkg_fetch_extract.subr @@ -3,7 +3,8 @@ # pkg_fetch_extract() { - local _oldpwd=""; + local _chainport_patch_fname="${BUILD_WORKDIR}/chainport/patches/${PKG_NAME%%_*}/${PKG_NAME%%_*}-${PKG_VERSION}.midipix.patch" + _chainport_patch_dname="${PKG_BASE_DIR}/${PKG_SUBDIR}/patches/${PKG_NAME%%_*}" _oldpwd=""; if [ -n "${PKG_URL}" ]\ && [ "${PKG_URL_TYPE:-wget}" = wget ]; then _oldpwd="${PWD}"; ex_rtl_fileop cd "${PKG_BASE_DIR}"; @@ -25,6 +26,10 @@ pkg_fetch_extract() { fi; ex_rtl_fileop cd "${_oldpwd}"; fi; + if [ -e "${_chainport_patch_fname}" ]; then + ex_rtl_fileop mkdir "${_chainport_patch_dname}"; + ex_rtl_fileop cp "${_chainport_patch_fname}" "${_chainport_patch_dname}"; + fi; }; # vim:filetype=sh |