From 4035a221ca932c7db4cfcdb0dd0669c271b7b39b Mon Sep 17 00:00:00 2001 From: madomado Date: Wed, 23 Oct 2024 23:58:43 +0800 Subject: [PATCH] add: xwayland-satellite (#2318) --- anda/langs/rust/xwayland-satellite/anda.hcl | 5 +++ .../langs/rust/xwayland-satellite/update.rhai | 1 + .../xwayland-satellite.spec | 32 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 anda/langs/rust/xwayland-satellite/anda.hcl create mode 100644 anda/langs/rust/xwayland-satellite/update.rhai create mode 100644 anda/langs/rust/xwayland-satellite/xwayland-satellite.spec diff --git a/anda/langs/rust/xwayland-satellite/anda.hcl b/anda/langs/rust/xwayland-satellite/anda.hcl new file mode 100644 index 0000000000..08be56162c --- /dev/null +++ b/anda/langs/rust/xwayland-satellite/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "xwayland-satellite.spec" + } +} diff --git a/anda/langs/rust/xwayland-satellite/update.rhai b/anda/langs/rust/xwayland-satellite/update.rhai new file mode 100644 index 0000000000..ea68a4030a --- /dev/null +++ b/anda/langs/rust/xwayland-satellite/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("supreeeme/xwayland-satellite")); diff --git a/anda/langs/rust/xwayland-satellite/xwayland-satellite.spec b/anda/langs/rust/xwayland-satellite/xwayland-satellite.spec new file mode 100644 index 0000000000..08897397a9 --- /dev/null +++ b/anda/langs/rust/xwayland-satellite/xwayland-satellite.spec @@ -0,0 +1,32 @@ +Name: xwayland-satellite +Version: 0.4 +Release: 1%?dist +Summary: Xwayland outside your Wayland. +License: MPL-2.0 +URL: https://github.com/supreeeme/xwayland-satellite +Source0: %url/archive/refs/tags/v%version.tar.gz +BuildRequires: anda-srpm-macros cargo-rpm-macros mold +BuildRequires: pkgconfig(xcb) +BuildRequires: xcb-util-cursor-devel +BuildRequires: clang-devel + +%description +xwayland-satellite grants rootless Xwayland integration to any Wayland +compositor implementing xdg_wm_base. This is particularly useful for +compositors that (understandably) do not want to go through implementing +support for rootless Xwayland themselves. + +%prep +%autosetup +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%files +%doc README.md +%license LICENSE +%_bindir/xwayland-satellite