Skip to content

Commit f1eab62

Browse files
committed
addpkg(tur/pipeline): 4.0.2
1 parent eb2bace commit f1eab62

3 files changed

Lines changed: 70 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/Cargo.toml b/Cargo.toml
2+
index 8655f42..e12ed99 100644
3+
--- a/Cargo.toml
4+
+++ b/Cargo.toml
5+
@@ -51,3 +51,4 @@ ppeertube = { package = "pipeline-provider-peertube", git = "https://gitlab.com/
6+
7+
clapper = { package = "clapper-player", version = "0.10", features = ["v0_10"] }
8+
clapper-gtk = { package = "clapper-player-gtk", version = "0.10", features = ["v0_10"] }
9+
+rquickjs = { version = "0.9.0", features = ["bindgen"] }
10+
diff --git a/src/meson.build b/src/meson.build
11+
index 5ae9129..c922001 100644
12+
--- a/src/meson.build
13+
+++ b/src/meson.build
14+
@@ -61,6 +61,6 @@ cargo_build = custom_target(
15+
cargo, 'build',
16+
cargo_options,
17+
'&&',
18+
- 'cp', 'target' / rust_target / meson.project_name(), '@OUTPUT@',
19+
+ 'sh', '-c', 'cp target/${CARGO_BUILD_TARGET:-.}/' + rust_target + '/' + meson.project_name() + ' "$1"', '_', '@OUTPUT@',
20+
]
21+
)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff --git a/src/main.rs b/src/main.rs
2+
index d7ae36d..fb6e2dc 100644
3+
--- a/src/main.rs
4+
+++ b/src/main.rs
5+
@@ -98,6 +98,18 @@ fn init_css() {
6+
fn main() {
7+
env_logger::init();
8+
9+
+ // Termux: Set SSL certificate paths so openssl-probe can find them
10+
+ if std::env::var("SSL_CERT_FILE").is_err() {
11+
+ let cert_file = "@TERMUX_PREFIX@/etc/tls/cert.pem";
12+
+ if std::path::Path::new(cert_file).exists() {
13+
+ // Safety: At this point the application is still single-threaded.
14+
+ unsafe {
15+
+ std::env::set_var("SSL_CERT_FILE", cert_file);
16+
+ std::env::set_var("SSL_CERT_DIR", "@TERMUX_PREFIX@/etc/tls/certs");
17+
+ }
18+
+ }
19+
+ }
20+
+
21+
// Before version 4.18, the NGL renderer is not so good, and Pipeline defaults to the old GL renderer.
22+
// Since 4.18, the old renderer was removed, and we will have to use the default.
23+
// See their annoucement of removal https://blog.gtk.org/2025/02/01/whats-new-in-gtk-winter-2025-edition/

tur/pipeline/build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
TERMUX_PKG_HOMEPAGE="https://gitlab.com/schmiddi-on-mobile/pipeline"
2+
TERMUX_PKG_DESCRIPTION="A YouTube frontend for mobile Linux"
3+
TERMUX_PKG_LICENSE="GPL-3.0"
4+
TERMUX_PKG_MAINTAINER="@termux"
5+
TERMUX_PKG_VERSION="4.0.2"
6+
TERMUX_PKG_SRCURL="https://gitlab.com/schmiddi-on-mobile/pipeline/-/archive/${TERMUX_PKG_VERSION}/pipeline-${TERMUX_PKG_VERSION}.tar.gz"
7+
TERMUX_PKG_SHA256="392eaed21806ecd80fd2e4553ad086746159f3b83c485de30c2e037062cf3532"
8+
TERMUX_PKG_AUTO_UPDATE=true
9+
TERMUX_PKG_DEPENDS="glib, gtk4, clapper, clapper-enhancers, sqlite, openssl, ca-certificates, python-yt-dlp, ffmpeg"
10+
TERMUX_PKG_BUILD_DEPENDS="rust, glib-cross, g-ir-scanner, blueprint-compiler"
11+
12+
termux_step_pre_configure() {
13+
termux_setup_rust
14+
termux_setup_gir
15+
termux_setup_bpc
16+
termux_setup_glib_cross_pkg_config_wrapper
17+
18+
export PATH="${TERMUX_PREFIX}/opt/glib/cross/bin:$PATH"
19+
20+
export CARGO_BUILD_TARGET="${CARGO_TARGET_NAME}"
21+
export BINDGEN_EXTRA_CLANG_ARGS_${CARGO_TARGET_NAME//-/_}="--sysroot ${TERMUX_STANDALONE_TOOLCHAIN}/sysroot --target=${CARGO_TARGET_NAME}"
22+
23+
local target_var="CARGO_TARGET_${CARGO_TARGET_NAME//-/_}_RUSTFLAGS"
24+
target_var=${target_var^^}
25+
export ${target_var}="${!target_var:-} -C link-arg=-liconv"
26+
}

0 commit comments

Comments
 (0)