|
Lucio Andrés Illanes Albornoz (arab, vxp) |
15af12 |
#
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
# set +o errexit -o noglob is assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
15af12 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
15af12 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
pkg_perl_fetch_extract_post() {
|
|
Lucio Andrés Illanes Albornoz |
907bd3 |
local _fname_src="" _fname_dst="" _cflag="";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
(ex_rtl_fileop cd "${PKG_BASE_DIR}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
802215 |
for _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) |
05e618 |
_fname_dst="perl-${PKG_VERSION}${_fname_src#perl-cross}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
05e618 |
if [ -f "${_fname_dst}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop mv "${_fname_dst}" "${_fname_dst}.orig";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
15af12 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
if [ ! -d "$(ex_rtl_dirname "${_fname_dst}")" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop mkdir "$(ex_rtl_dirname "${_fname_dst}")";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
15af12 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop cp "${_fname_src}" "${_fname_dst}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d5afb4 |
done);
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
802215 |
for _cflag in ${PKG_CFLAGS_CONFIGURE}; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
802215 |
PKG_CONFIGURE_ARGS="${PKG_CONFIGURE_ARGS:+${PKG_CONFIGURE_ARGS} }-A ccflags=${_cflag}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ad1a1c |
done;
|
|
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
|