Skip to content

Commit 4e214a8

Browse files
fix(tur/python-polars): prepend $TERMUX_PREFIX to /tmp in x11rb-protocol
1 parent e6c7a50 commit 4e214a8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tur/python-polars/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Dataframes powered by a multithreaded, vectorized query
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="@termux-user-repository"
55
TERMUX_PKG_VERSION="1.39.3"
6+
TERMUX_PKG_REVISION=1
67
TERMUX_PKG_SRCURL="https://github.com/pola-rs/polars/archive/refs/tags/py-$TERMUX_PKG_VERSION.tar.gz"
78
TERMUX_PKG_SHA256=02e29fd1d514721a6ed563244e2beedf0855c7ff4efcc503f772f83e9ffa71c9
89
TERMUX_PKG_AUTO_UPDATE=true
@@ -38,14 +39,16 @@ termux_step_pre_configure() {
3839
find ./vendor \
3940
-mindepth 1 -maxdepth 1 -type d \
4041
! -wholename ./vendor/arboard \
42+
! -wholename ./vendor/x11rb-protocol \
4143
-exec rm -rf '{}' \;
4244

43-
find vendor/arboard -type f -print0 | \
45+
find vendor/{arboard,x11rb-protocol} -type f -print0 | \
4446
xargs -0 sed -i \
45-
-e 's|"android"|"disabling_this_because_it_is_for_building_an_apk"|g' \
46-
-e 's|"linux"|"android"|g'
47+
-e 's|android|disabling_this_because_it_is_for_building_an_apk|g' \
48+
-e "s|/tmp|$TERMUX_PREFIX/tmp|g"
4749

4850
sed -i '/\[patch.crates-io\]/a arboard = { path = "./vendor/arboard" }' Cargo.toml
51+
sed -i '/\[patch.crates-io\]/a x11rb-protocol = { path = "./vendor/x11rb-protocol" }' Cargo.toml
4952

5053
export TERMUX_PKG_SRCDIR+="/py-polars"
5154
export TERMUX_PKG_BUILDDIR="$TERMUX_PKG_SRCDIR"

0 commit comments

Comments
 (0)