mirror of
https://github.com/termux-pacman/glibc-packages.git
synced 2024-11-23 14:46:18 +00:00
98577d4eb4
gpkg/gobject-introspection gpkg/libxml2
24 lines
1.1 KiB
Bash
24 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://gi.readthedocs.io/
|
|
TERMUX_PKG_DESCRIPTION="Uniform machine readable API"
|
|
TERMUX_PKG_LICENSE="LGPL-2.0, GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux-pacman"
|
|
TERMUX_PKG_VERSION="1.82.0"
|
|
TERMUX_PKG_SRCURL=https://download.gnome.org/sources/gobject-introspection/${TERMUX_PKG_VERSION%.*}/gobject-introspection-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=0f5a4c1908424bf26bc41e9361168c363685080fbdb87a196c891c8401ca2f09
|
|
TERMUX_PKG_DEPENDS="libgirepository-glibc, python-glibc"
|
|
TERMUX_PKG_BUILD_DEPENDS="coreutils-glibc"
|
|
TERMUX_PKG_PYTHON_COMMON_DEPS="setuptools"
|
|
TERMUX_PKG_MESON_NATIVE=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-Dpython=$TERMUX_PREFIX/bin/python3
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
CPPFLAGS+="-I$TERMUX_PREFIX/include/python${TERMUX_PYTHON_VERSION} -I$TERMUX_PREFIX/include/python${TERMUX_PYTHON_VERSION}/cpython"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
$TERMUX_PREFIX/bin/python3 -m compileall -d $TERMUX_PREFIX/lib/gobject-introspection $TERMUX_PREFIX/lib/gobject-introspection
|
|
$TERMUX_PREFIX/bin/python3 -O -m compileall -d $TERMUX_PREFIX/lib/gobject-introspection $TERMUX_PREFIX/lib/gobject-introspection
|
|
}
|