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 (arab, vxp) 817c7a
	if ex_rtl_fileop test "${PKG_DESTDIR}/bin/python"; then
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
		ex_rtl_fileop rm "${PKG_DESTDIR}/bin/python";
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
	cat > "${PKG_DESTDIR}/bin/python" <
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 (arab, vxp) 817c7a
	"${PREFIX}/bin/python3" "\${@}";
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
EOF
Lucio Andrés Illanes Albornoz (arab, vxp) 817c7a
        chmod +x "${PKG_DESTDIR}/bin/python";
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