|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
|
8d7a8a |
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂa Andrea Illanes Albornoz <lucia@luciaillanes.de>
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
pkgp_configure_patch_pre() {
|
|
|
fd38dc |
local _ppcpp_patch_fname="" _ppcpp_patch_idx=0;
|
|
|
e9fa07 |
|
|
|
fd38dc |
_ppcpp_patch_idx=1;
|
|
|
fd38dc |
while ex_pkg_get_default \
|
|
|
fd38dc |
\$_ppcpp_patch_fname "${PKG_NAME}" \
|
|
|
1f04ef |
"${PKG_VERSION:-}" "patches_pre" "${_ppcpp_patch_idx}" \
|
|
|
fd38dc |
&& [ "${_pcp_patch_fname:+1}" = 1 ];
|
|
|
e9fa07 |
do
|
|
|
fd38dc |
: $((_ppcpp_patch_idx += 1));
|
|
|
fd38dc |
if [ -r "${_ppcpp_patch_fname}" ]\
|
|
|
fd38dc |
&& ! patch -b -d "${PKG_BASE_DIR}/${PKG_SUBDIR}" -p1 < "${_ppcpp_patch_fname}";
|
|
|
e9fa07 |
then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
802215 |
done;
|
|
|
e9fa07 |
return 0;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
pkgp_configure_patch_pre_chainport() {
|
|
|
fd38dc |
local _ppcppc_patch_dname="" _ppcppc_patch_fname="";
|
|
|
e9fa07 |
|
|
|
1f04ef |
ex_pkg_get_default \
|
|
|
1f04ef |
\$_ppcppc_patch_fname "${PKG_NAME}" \
|
|
|
1f04ef |
"${PKG_VERSION:-}" "patches_chainport" 1 \
|
|
|
fd38dc |
|| return 1;
|
|
|
fd38dc |
|
|
|
fd38dc |
if [ "${_ppcppc_patch_fname:+1}" = 1 ]\
|
|
|
fd38dc |
&& [ -e "${_ppcppc_patch_fname}" ]; then
|
|
|
fd38dc |
_ppcppc_patch_dname="${PKG_BASE_DIR}/${PKG_SUBDIR}/patches/${PKG_NAME%%_*}";
|
|
|
e9fa07 |
if ! rtl_fileop mkdir "${_ppcppc_patch_dname}"\
|
|
|
e9fa07 |
|| ! rtl_fileop cp "${_ppcppc_patch_fname}" "${_ppcppc_patch_dname}"; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
fi;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
fi;
|
|
|
e9fa07 |
return 0;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
};
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
pkg_configure_patch_pre() {
|
|
|
e9fa07 |
local _pcpp_group_name="${1}" _pcpp_pkg_name="${2}" _pcpp_restart_at="${3}";
|
|
|
e9fa07 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
if ! pkgp_configure_patch_pre_chainport\
|
|
|
e9fa07 |
|| ! pkgp_configure_patch_pre;
|
|
|
e9fa07 |
then
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
fi;
|
|
|
e9fa07 |
return 0;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
};
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
|
|
|
64844b |
# vim:filetype=sh textwidth=0
|