xcb-proto: get python version in termux_step_pre_configure

Instead of termux_step_configure. 

Fixes https://github.com/termux/termux-packages/issues/5720
This commit is contained in:
Henrik Grimler 2020-08-21 12:28:46 +02:00 committed by GitHub
parent b6c702b46e
commit 5f7c9fa701
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_CONFLICTS="xcbproto"
TERMUX_PKG_REPLACES="xcbproto"
termux_step_configure() {
termux_step_pre_configure() {
python_version=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
TERMUX_PKG_RM_AFTER_INSTALL="lib/python${python_version}/site-packages/xcbgen/__pycache__"
}