Blame 300.bzip2.vars

Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
#
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
# . ./build.vars and set -o errexit are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
#
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
pkg_bzip2_install_post() {
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
	set -- bzcmp bzegrep bzfgrep bzless;
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
	while [ ${#} -gt 0 ]; do
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
		[ -f ${PKG_PREFIX}/bin/${1} ] &&\
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
			ln -sf $(basename $(readlink ${PKG_PREFIX}/bin/${1}))\
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
				${PKG_PREFIX}/bin/${1};
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
		shift;
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
	find . \( -name libbz2.so							\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
		-or -name libbz2.so.\[0-9\]						\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
		-or -name libbz2.so.\[0-9\].\[0-9\]					\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
		-or -name libbz2.so.\[0-9\].\[0-9\].\[0-9\] \)				\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
		-exec sh -c '								\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
			if [ -L {} ]; then						\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
				echo ln -sf $(readlink {}) '"${PKG_PREFIX}"'/lib;	\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
				ln -sf $(readlink {}) '"${PKG_PREFIX}"'/lib;		\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
			else								\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
				echo install {} '"${PKG_PREFIX}"'/lib;			\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
				install {} '"${PKG_PREFIX}"'/lib;			\
Lucio Andrés Illanes Albornoz (arab, vxp) 86c0f5
			fi' \;;
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
};
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
Lucio Andrés Illanes Albornoz (arab, vxp) b8dc4b
# vim:filetype=sh