Blame vars/perl.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
#
Lucio Andrés Illanes Albornoz (arab, vxp) 820be1
# . ./build.vars and set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
#
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
pkg_perl_extract_post() {
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
	git clone https://github.com/lalbornoz/perl-cross;
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
	for _ppep_fname_src in $(find perl-cross -type f	\
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
			-not -path perl-cross/.git/\* -not -name .gitignore); do
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
		_ppep_fname_dst=perl-${PKG_VERSION}${_ppep_fname_src#perl-cross};
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
		if [ -f ${_ppep_fname_dst} ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 820be1
			mv -- ${_ppep_fname_dst} ${_ppep_fname_dst}.orig;
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
		if [ ! -d "$(dirname ${_ppep_fname_dst})" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 820be1
			mkdir -p -- $(dirname ${_ppep_fname_dst});
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 820be1
		cp -- ${_ppep_fname_src} ${_ppep_fname_dst};
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) ad1a1c
	for _ppep_cflag in ${PKG_CFLAGS_CONFIGURE}; do
Lucio Andrés Illanes Albornoz (arab, vxp) ad1a1c
		PKG_CONFIGURE_ARGS="${PKG_CONFIGURE_ARGS:+${PKG_CONFIGURE_ARGS} }-A ccflags=${_ppep_cflag}";
Lucio Andrés Illanes Albornoz (arab, vxp) ad1a1c
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) ad1a1c
	unset _ppep_fname_src _ppep_fname_dst _ppep_cflag;
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
};
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
Lucio Andrés Illanes Albornoz (arab, vxp) 15af12
# vim:filetype=sh