2021-06-03 23:04:27 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://gi.readthedocs.io/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Uniform machine readable API"
|
2022-03-23 00:17:52 +01:00
|
|
|
TERMUX_PKG_LICENSE="LGPL-2.0, GPL-2.0"
|
2022-03-24 15:54:47 +01:00
|
|
|
TERMUX_PKG_VERSION=1.72.0
|
2021-06-03 23:04:27 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/GNOME/gobject-introspection/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz
|
2022-03-24 15:54:47 +01:00
|
|
|
TERMUX_PKG_SHA256=07c30d7f465dabd861c03a950430343e976d445179ad451a4dd1b17329e1cbae
|
2021-06-03 23:04:27 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="glib, python"
|
2022-03-24 15:54:47 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
-Dpython=python
|
|
|
|
"
|
2021-11-23 15:34:57 +01:00
|
|
|
|
2021-06-03 23:04:27 +02:00
|
|
|
termux_step_pre_configure() {
|
2021-11-25 11:04:07 +01:00
|
|
|
_PYTHON_VERSION=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
|
2022-03-24 15:54:47 +01:00
|
|
|
|
|
|
|
termux_setup_python_crossenv
|
|
|
|
pushd $TERMUX_PYTHON_CROSSENV_SRCDIR
|
|
|
|
_CROSSENV_PREFIX=$TERMUX_PKG_BUILDDIR/python-crossenv-prefix
|
|
|
|
python${_PYTHON_VERSION} -m crossenv \
|
|
|
|
$TERMUX_PREFIX/bin/python${_PYTHON_VERSION} \
|
|
|
|
${_CROSSENV_PREFIX}
|
|
|
|
popd
|
|
|
|
. ${_CROSSENV_PREFIX}/bin/activate
|
|
|
|
|
2021-11-25 11:04:07 +01:00
|
|
|
echo "Applying meson.diff"
|
|
|
|
sed "s%@PYTHON_VERSION@%$_PYTHON_VERSION%g" \
|
|
|
|
$TERMUX_PKG_BUILDER_DIR/meson.diff | patch --silent -p1
|
|
|
|
|
2022-03-24 15:54:47 +01:00
|
|
|
CPPFLAGS+="
|
|
|
|
-I$TERMUX_PREFIX/include/python${_PYTHON_VERSION}
|
|
|
|
-I$TERMUX_PREFIX/include/python${_PYTHON_VERSION}/cpython
|
|
|
|
"
|
2021-06-03 23:04:27 +02:00
|
|
|
}
|