From 5f7c9fa70144e7779a014ff254851b509ad5462d Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Fri, 21 Aug 2020 12:28:46 +0200 Subject: [PATCH] xcb-proto: get python version in termux_step_pre_configure Instead of termux_step_configure. Fixes https://github.com/termux/termux-packages/issues/5720 --- packages/xcb-proto/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xcb-proto/build.sh b/packages/xcb-proto/build.sh index 3790c2556..0041031b7 100644 --- a/packages/xcb-proto/build.sh +++ b/packages/xcb-proto/build.sh @@ -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__" }