[packages/wezterm] - added big tarball with crates and today's clones of harbuzz, libpng, zlib and wez/freetype - added
witekfl
witekfl at pld-linux.org
Fri Apr 24 17:54:37 CEST 2026
commit dcadb0e108b87eccd525476bde1c05614fd97595
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Fri Apr 24 17:51:43 2026 +0200
- added big tarball with crates and today's clones of harbuzz, libpng, zlib and wez/freetype
- added a few compilation fixes
libpng.patch | 20 +++++++++++
lua.patch | 12 +++++++
time.patch | 15 ++++++++
wezterm.spec | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 163 insertions(+)
---
diff --git a/wezterm.spec b/wezterm.spec
new file mode 100644
index 0000000..b978ec3
--- /dev/null
+++ b/wezterm.spec
@@ -0,0 +1,116 @@
+%define date 20240203
+%define time 110809
+%define hash 5046fc22
+Summary: Wez's Terminal Emulator
+Summary(pl.UTF-8): Emulator terminala Weza
+Name: wezterm
+Version: 20240203.110809
+Release: 1
+License: MIT
+Group: X11/Applications
+#Source0Download: https://github.com/wezterm/wezterm/releases
+Source0: https://github.com/wezterm/wezterm/archive/refs/tags/%{date}-%{time}-%{hash}.tar.gz
+# Source0-md5: da014a91bf67d58076fa446e91a47fae
+Source1: %{name}-crates-%{date}-%{time}-%{hash}.tar.xz
+# Source1-md5: c596c52c75f99a89cdbbb8c4ab95bf76
+Patch0: time.patch
+Patch1: lua.patch
+Patch2: libpng.patch
+URL: https://wezterm.org/
+BuildRequires: Mesa-libEGL-devel
+BuildRequires: cargo
+BuildRequires: curl
+BuildRequires: fontconfig-devel
+BuildRequires: gcc
+BuildRequires: libstdc++-devel
+BuildRequires: libxcb-devel
+BuildRequires: openssl-devel
+BuildRequires: wayland-devel
+BuildRequires: xcb-util-devel
+BuildRequires: xcb-util-image-devel
+BuildRequires: xcb-util-keysyms-devel
+BuildRequires: xcb-util-wm-devel
+BuildRequires: xorg-lib-libxkbcommon-devel
+BuildRequires: xorg-lib-libxkbcommon-x11-devel
+Requires: Mesa-libEGL
+Requires: dbus
+Requires: fontconfig
+Requires: libxcb
+Requires: openssl
+Requires: wayland
+Requires: xcb-util-keysyms
+Requires: xcb-util-wm
+Requires: xorg-lib-libxkbcommon
+Requires: xorg-lib-libxkbcommon-x11
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+wezterm is a terminal emulator with support for modern features such
+as fonts with ligatures, hyperlinks, tabs and multiple windows.
+
+%description -l pl.UTF-8
+wezterm jest emulatorem terminala ze wsparciem dla nowoczesnych
+funkcjonalności takich jak czcionki z ligaturami, hiperłącza, karty i
+wiele okien.
+
+%prep
+%setup -q -n %{name}-%{date}-%{time}-%{hash} -b1
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
+
+# Use our offline registry
+export CARGO_HOME="$(pwd)/.cargo"
+
+mkdir -p "$CARGO_HOME"
+cat >.cargo/config <<EOF
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/wez/xcb-imdkit-rs.git?rev=215ce4b08ac9c4822e541efd4f4ffb1062806051"]
+git = "https://github.com/wez/xcb-imdkit-rs.git"
+rev = "215ce4b08ac9c4822e541efd4f4ffb1062806051"
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "$(pwd)/vendor"
+EOF
+
+sed -i 's/"vendored-fonts", //' wezterm-gui/Cargo.toml
+
+%build
+export CARGO_HOME="$(pwd)/.cargo"
+
+%cargo_build --offline
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -Dm 755 "target/%{_target_base_arch}-unknown-linux-gnu/release/%{name}" -t "$RPM_BUILD_ROOT%{_bindir}"
+install -Dm 755 "target/%{_target_base_arch}-unknown-linux-gnu/release/%{name}-gui" -t "$RPM_BUILD_ROOT%{_bindir}"
+install -Dm 755 "target/%{_target_base_arch}-unknown-linux-gnu/release/%{name}-mux-server" -t "$RPM_BUILD_ROOT%{_bindir}"
+install -Dm 755 "target/%{_target_base_arch}-unknown-linux-gnu/release/strip-ansi-escapes" -t "$RPM_BUILD_ROOT%{_bindir}"
+install -Dm 644 "assets/icon/terminal.png" "$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/org.wezfurlong.%{name}.png"
+install -Dm 644 "assets/%{name}.desktop" "$RPM_BUILD_ROOT%{_desktopdir}/org.wezfurlong.%{name}.desktop"
+install -Dm 644 "assets/%{name}.appdata.xml" "$RPM_BUILD_ROOT%{_datadir}/metainfo/org.wezfurlong.%{name}.appdata.xml"
+install -Dm 644 "assets/%{name}-nautilus.py" "$RPM_BUILD_ROOT%{_datadir}/nautilus-python/extensions/%{name}-nautilus.py"
+install -Dm 755 "assets/open-%{name}-here" -t "$RPM_BUILD_ROOT%{_bindir}"
+install -Dm 644 assets/shell-completion/bash "$RPM_BUILD_ROOT%{bash_compdir}/%{name}"
+install -Dm 644 assets/shell-completion/fish "$RPM_BUILD_ROOT%{fish_compdir}/%{name}.fish"
+install -Dm 644 assets/shell-completion/zsh "$RPM_BUILD_ROOT%{zsh_compdir}/_%{name}"
+install -Dm 644 assets/shell-integration/%{name}.sh -t "$RPM_BUILD_ROOT/etc/profile.d"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CONTRIBUTING.md PRIVACY.md README-DISTRO-MAINTAINER.md README.md
+%attr(755,root,root) %{_bindir}/*
+/etc/profile.d/wezterm.sh
+%{_desktopdir}/org.wezfurlong.wezterm.desktop
+%{bash_compdir}/wezterm
+%{fish_compdir}/wezterm.fish
+%{_iconsdir}/hicolor/128x128/apps/org.wezfurlong.wezterm.png
+%{_datadir}/metainfo/org.wezfurlong.wezterm.appdata.xml
+%{_datadir}/nautilus-python/extensions/wezterm-nautilus.py
+%{zsh_compdir}/_wezterm
diff --git a/libpng.patch b/libpng.patch
new file mode 100644
index 0000000..9b098ae
--- /dev/null
+++ b/libpng.patch
@@ -0,0 +1,20 @@
+diff -up wezterm-20240203-110809-5046fc22/deps/freetype/build.rs.old wezterm-20240203-110809-5046fc22/deps/freetype/build.rs
+--- wezterm-20240203-110809-5046fc22/deps/freetype/build.rs.old 2024-02-03 19:08:09.000000000 +0100
++++ wezterm-20240203-110809-5046fc22/deps/freetype/build.rs 2026-04-24 15:19:33.723019004 +0200
+@@ -68,6 +68,7 @@ fn libpng() {
+ .file("libpng/pngrtran.c")
+ .file("libpng/pngrutil.c")
+ .file("libpng/pngset.c")
++ .file("libpng/pngsimd.c")
+ .file("libpng/pngtrans.c")
+ .file("libpng/pngwio.c")
+ .file("libpng/pngwrite.c")
+@@ -99,7 +100,7 @@ fn libpng() {
+
+ fs::write(
+ build_dir.join("pnglibconf.h"),
+- fs::read_to_string("libpng/scripts/pnglibconf.h.prebuilt").unwrap(),
++ fs::read_to_string("libpng/pnglibconf.h.prebuilt").unwrap(),
+ )
+ .unwrap();
+
diff --git a/lua.patch b/lua.patch
new file mode 100644
index 0000000..b857c10
--- /dev/null
+++ b/lua.patch
@@ -0,0 +1,12 @@
+diff -up wezterm-20240203-110809-5046fc22/config/src/lua.rs.old wezterm-20240203-110809-5046fc22/config/src/lua.rs
+--- wezterm-20240203-110809-5046fc22/config/src/lua.rs.old 2026-04-24 14:23:14.774013395 +0200
++++ wezterm-20240203-110809-5046fc22/config/src/lua.rs 2026-04-24 14:23:37.397931572 +0200
+@@ -276,7 +276,7 @@ end
+ "#,
+ )
+ .set_name("=searcher")
+- .eval()
++ .eval::<()>()
+ .context("replace package.searchers")?;
+
+ wezterm_mod.set(
diff --git a/time.patch b/time.patch
new file mode 100644
index 0000000..179d2ef
--- /dev/null
+++ b/time.patch
@@ -0,0 +1,15 @@
+diff -up wezterm-20240203-110809-5046fc22/Cargo.lock.orig wezterm-20240203-110809-5046fc22/Cargo.lock
+--- wezterm-20240203-110809-5046fc22/Cargo.lock.orig 2024-02-03 19:08:09.000000000 +0100
++++ wezterm-20240203-110809-5046fc22/Cargo.lock 2026-04-24 13:55:26.744343624 +0200
+@@ -5554,9 +5554,9 @@ dependencies = [
+
+ [[package]]
+ name = "time"
+-version = "0.3.31"
++version = "0.3.44"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "f657ba42c3f86e7680e53c8cd3af8abbe56b5491790b46e22e19c0d57463583e"
++checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d"
+ dependencies = [
+ "deranged",
+ "itoa",
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wezterm.git/commitdiff/dcadb0e108b87eccd525476bde1c05614fd97595
More information about the pld-cvs-commit
mailing list