Lucio Andrés Illanes Albornoz 3e5303
#
8d7a8a
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂ­a Andrea Illanes Albornoz <lucia@luciaillanes.de>
Lucio Andrés Illanes Albornoz 3e5303
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz 3e5303
#
Lucio Andrés Illanes Albornoz 3e5303
Lucio Andrés Illanes Albornoz 3e5303
pkg_configure_clean() {
e9fa07
	local _pcc_group_name="${1}" _pcc_pkg_name="${2}" _pcc_restart_at="${3}";
Lucio Andrés Illanes Albornoz 3e5303
Lucio Andrés Illanes Albornoz 3e5303
	if ex_pkg_state_test									\
e9fa07
			"${_pcc_pkg_name}"							\
Lucio Andrés Illanes Albornoz 3e5303
			"configure_patch_pre,configure_autotools,configure_patch,configure"	\
e9fa07
			"${_pcc_restart_at}"\
e9fa07
	&& [ "${PKG_BUILD_DIR:-}" != "${PKG_SUBDIR:-}" ];
e9fa07
	then
e9fa07
		rtl_fileop rm "${PKG_BUILD_DIR}" || return 1;
e9fa07
		rtl_fileop mkdir "${PKG_BUILD_DIR}" || return 1;
e9fa07
		rtl_fileop cd "${PKG_BUILD_DIR}" || return 1;
Lucio Andrés Illanes Albornoz 3e5303
	fi;
e9fa07
	return 0;
Lucio Andrés Illanes Albornoz 3e5303
};
Lucio Andrés Illanes Albornoz 3e5303
64844b
# vim:filetype=sh textwidth=0