summaryrefslogtreecommitdiffhomepage
path: root/vars/python3_host.vars
blob: b2456b426c8ea12ca56e871faded54501aff1977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# set -o errexit -o noglob are assumed.
#

pkg_python3_host_fetch_download() {
	ex_rtl_fileop rm "${PKG_BASE_DIR}/sbpython3";
	ex_rtl_fetch_urls_git "${PKG_BASE_DIR}/build" "sbpython3=${DEFAULT_GITROOT}/python/sbpython3@main";
	ex_rtl_fileop cp ../sbpython3/project/config/cfgdefs.sh ../sbpython3/project/config/cfgdefs.sh.orig;
	sed -i"" -e"s/-ltinfo/&w/" -e"s/mb_ncurses_libs='\([^']\+\)'/mb_ncurses_libs='\1 -ltinfow'/" ../sbpython3/project/config/cfgdefs.sh;
	sed -i"" -e'108a\
cfgtest_ldflags_append "-L$mb_prefix/lib"' ../sbpython3/project/config/cfgdefs.sh;
	ex_pkg_state_set "${PKG_NAME}" fetch_download -fetch_extract;
};

# vim:filetype=sh