Skip to content

Commit ddb151e

Browse files
committed
new package: python3.12-lxml
1 parent 3284e52 commit ddb151e

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- a/buildlibxml.py
2+
+++ b/buildlibxml.py
3+
@@ -483,6 +483,9 @@
4+
'--prefix=%s' % prefix,
5+
]
6+
7+
+ configure_cmd_extra = [x.strip() for x in os.environ.get("TERMUX_CONFIGURE_CMD_EXTRA", "").split() if x.strip()]
8+
+ configure_cmd += configure_cmd_extra
9+
+
10+
# build zlib
11+
zlib_configure_cmd = [
12+
'./configure',
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

Comments
 (0)