blob: b634a3e7eba3538c7c155b40f2f5a2d399a8a2b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#
# set +o errexit -o noglob -o nounset is assumed.
#
pkg_perl_fetch_extract_post() {
local _cflag="" _dname_dst="" _fname_dst="" _fname_src="";
if ! ( if ! rtl_fileop cd "${PKG_BASE_DIR}"; then
return 1;
else
for _fname_src in $(find perl-cross -type f -not -path perl-cross/.git/\* -not -name .gitignore); do
_fname_dst="perl-${PKG_VERSION}${_fname_src#perl-cross}";
if [ -f "${_fname_dst}" ]; then
if ! rtl_fileop mv "${_fname_dst}" "${_fname_dst}.orig"; then
return 1;
fi;
fi;
rtl_dirname2 \$_fname_dst \$_dname_dst;
if ! [ -d "${_dname_dst}" ]; then
if ! rtl_fileop mkdir "${_dname_dst}"; then
return 1;
fi;
fi;
if ! rtl_fileop cp "${_fname_src}" "${_fname_dst}"; then
return 1;
fi;
done;
fi); then
return 1;
else
for _cflag in ${PKG_CFLAGS_CONFIGURE}; do
rtl_lconcat \$PKG_CONFIGURE_ARGS "-A ccflags=${_cflag}";
done;
fi;
};
# vim:filetype=sh textwidth=0
|