Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame subr/pkg_install.subr

Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) f539a4
pkg_install() {
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
	local _dst_path;
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
	for _dst_path in "${PKG_PREFIX}" "${PKG_PREFIX_EXTRA}"; do
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
		if [ -n "${_dst_path}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
			build_fileop mkdir "${_dst_path}";
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
			tar -C "${PKG_DESTDIR}" -cpf - . |\
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
				tar -C "${_dst_path}" -xpf -;
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 022f7e
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
};
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
# vim:filetype=sh