|
Lucio Andrés Illanes Albornoz (arab, vxp) |
353e64 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
353e64 |
# set -o errexit -o noglob are assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
353e64 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
353e64 |
|
|
|
3c5334 |
pkg_python2_host_fetch_git() {
|
|
|
3c5334 |
ex_rtl_fileop rm "${PKG_BASE_DIR}/sbpython2";
|
|
|
3c5334 |
ex_rtl_fetch_urls_git "${PKG_BASE_DIR}/build" "sbpython2=${DEFAULT_GITROOT}/python/sbpython2@main";
|
|
|
3c5334 |
ex_pkg_state_set "${PKG_NAME}" fetch -extract;
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
};
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
pkg_python2_host_install_make_post() {
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
if ex_rtl_fileop test "${PKG_DESTDIR}/bin/python2.7.wrapper"; then
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
ex_rtl_fileop rm "${PKG_DESTDIR}/bin/python2.7.wrapper";
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
fi;
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
cat > "${PKG_DESTDIR}/bin/python2.7.wrapper" <
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
#!/bin/sh
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
env LD_LIBRARY_PATH="${PREFIX}/lib" "${PREFIX}/bin/python2.7" "\${@}";
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
EOF
|
|
Lucio Andrés Illanes Albornoz |
cff33e |
chmod +x "${PKG_DESTDIR}/bin/python2.7.wrapper";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
353e64 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
353e64 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
353e64 |
# vim:filetype=sh
|