midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame vars/python3_host.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
#
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
#
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
pkg_python3_host_install_make_post() {
Lucio Andrés Illanes Albornoz 65bdd1
	if ex_rtl_fileop test "${PKG_DESTDIR}/bin/python3"; then
Lucio Andrés Illanes Albornoz 65bdd1
		ex_rtl_fileop rm "${PKG_DESTDIR}/bin/python3";
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
	fi;
Lucio Andrés Illanes Albornoz 65bdd1
	cat > "${PKG_DESTDIR}/bin/python3" <
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
#!/bin/sh
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
env LD_LIBRARY_PATH="${PREFIX}/lib"	\
Lucio Andrés Illanes Albornoz 65bdd1
	"${PREFIX}/bin/python3.5" "\${@}";
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
EOF
Lucio Andrés Illanes Albornoz 65bdd1
        chmod +x "${PKG_DESTDIR}/bin/python3";
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
};
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
# vim:filetype=sh