|
| 1 | +TERMUX_PKG_HOMEPAGE=https://github.com/lxml/lxml |
| 2 | +TERMUX_PKG_DESCRIPTION="A straightforward binding of libsass for Python" |
| 3 | +TERMUX_PKG_LICENSE="MIT" |
| 4 | +TERMUX_PKG_MAINTAINER="@termux-user-repository" |
| 5 | +TERMUX_PKG_VERSION="5.3.0" |
| 6 | +TERMUX_PKG_SRCURL=https://github.com/lxml/lxml/releases/download/lxml-$TERMUX_PKG_VERSION/lxml-$TERMUX_PKG_VERSION.tar.gz |
| 7 | +TERMUX_PKG_SHA256=4e109ca30d1edec1ac60cdbe341905dc3b8f55b16855e03a54aaf59e51ec8c6f |
| 8 | +TERMUX_PKG_DEPENDS="python" |
| 9 | +TERMUX_PKG_PYTHON_COMMON_DEPS="wheel" |
| 10 | +TERMUX_PKG_BUILD_IN_SRC=true |
| 11 | +TERMUX_PKG_AUTO_UPDATE=true |
| 12 | +TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+" |
| 13 | +TERMUX_PKG_UPDATE_TAG_TYPE="latest-release-tag" |
| 14 | + |
| 15 | +TERMUX_PYTHON_VERSION=3.12 |
| 16 | +TERMUX_PYTHON_CROSSENV_PREFIX=$TERMUX_PKG_BUILDDIR/python${TERMUX_PYTHON_VERSION/./}-crossenv-prefix-$TERMUX_ARCH |
| 17 | +TUR_AUTO_AUDIT_WHEEL=true |
| 18 | +TUR_AUDIT_WHEEL_NO_LIBS=true |
| 19 | + |
| 20 | +source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh |
| 21 | + |
| 22 | +termux_pkg_auto_update() { |
| 23 | + local tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}" "${TERMUX_PKG_UPDATE_TAG_TYPE}")" |
| 24 | + if grep -qP "^lxml-${TERMUX_PKG_UPDATE_VERSION_REGEXP}\$" <<<"$tag"; then |
| 25 | + termux_pkg_upgrade_version "$tag" |
| 26 | + else |
| 27 | + echo "WARNING: Skipping auto-update: Not stable release($tag)" |
| 28 | + fi |
| 29 | +} |
| 30 | + |
| 31 | +termux_step_pre_configure() { |
| 32 | + export STATIC_DEPS=true |
| 33 | + export TERMUX_CONFIGURE_CMD_EXTRA="--build=x86_64-linux-gnu --host=$TERMUX_HOST_PLATFORM" |
| 34 | + |
| 35 | + export CFLAGS+=" -fPIC" |
| 36 | +} |
0 commit comments