summaryrefslogtreecommitdiffhomepage
path: root/vars/perl.vars
blob: 302a040a330d1c5b076cea07ac5e6083c1fd231e (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
#
# . ./build.vars and set -o errexit -o noglob are assumed.
#

pkg_perl_extract_post() {
	fetch_git perl-cross https://github.com/lalbornoz/perl-cross master;
	for _ppep_fname_src in $(find perl-cross -type f	\
			-not -path perl-cross/.git/\* -not -name .gitignore); do
		_ppep_fname_dst=perl-${PKG_VERSION}${_ppep_fname_src#perl-cross};
		if [ -f ${_ppep_fname_dst} ]; then
			mv -- ${_ppep_fname_dst} ${_ppep_fname_dst}.orig;
		fi;
		if [ ! -d "$(dirname ${_ppep_fname_dst})" ]; then
			mkdir -p -- $(dirname ${_ppep_fname_dst});
		fi;
		cp -- ${_ppep_fname_src} ${_ppep_fname_dst};
	done;
	for _ppep_cflag in ${PKG_CFLAGS_CONFIGURE}; do
		PKG_CONFIGURE_ARGS="${PKG_CONFIGURE_ARGS:+${PKG_CONFIGURE_ARGS} }-A ccflags=${_ppep_cflag}";
	done;
	unset _ppep_fname_src _ppep_fname_dst _ppep_cflag;
};

# vim:filetype=sh