From 7560b1ba2875468c29c3690ee6cc9fa74cfbd7b5 Mon Sep 17 00:00:00 2001 From: madomado Date: Fri, 28 Apr 2023 23:50:36 +0800 Subject: [PATCH] add: gtk4-layer-shell (#409) * add: gtk4-layer-shell * fix(deps): ~ * fix(check): ~ * feat: remove checks --- anda/lib/gtk4-layer-shell/anda.hcl | 5 ++ .../gtk4-layer-shell/gtk4-layer-shell.spec | 63 +++++++++++++++++++ anda/lib/gtk4-layer-shell/update.rhai | 1 + 3 files changed, 69 insertions(+) create mode 100644 anda/lib/gtk4-layer-shell/anda.hcl create mode 100644 anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec create mode 100644 anda/lib/gtk4-layer-shell/update.rhai diff --git a/anda/lib/gtk4-layer-shell/anda.hcl b/anda/lib/gtk4-layer-shell/anda.hcl new file mode 100644 index 0000000000..5d3ecca5f1 --- /dev/null +++ b/anda/lib/gtk4-layer-shell/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "gtk4-layer-shell.spec" + } +} diff --git a/anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec b/anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec new file mode 100644 index 0000000000..38ddc0d231 --- /dev/null +++ b/anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec @@ -0,0 +1,63 @@ +Name: gtk4-layer-shell +Version: 1.0.0 +Release: 1%?dist +Summary: A library to create panels and other desktop components for Wayland using the Layer Shell protocol and GTK4 +License: MIT +URL: https://github.com/wmww/gtk4-layer-shell +Source0: %url/archive/refs/tags/v%version.tar.gz +BuildRequires: meson ninja-build python3.11 vala +BuildRequires: libwayland-client gtk4-devel gobject-introspection gtk-doc + +%description +A library for using the Layer Shell Wayland protocol with GTK4. With this library +you can build desktop shell components such as panels, notifications and wallpapers. +You can use it to anchor your windows to a corner or edge of the output, or stretch +them across the entire output. This Library is compatible with C, C++ and any +language that supports GObject introspection files (Python, Vala, etc). + + +%package doc +Summary: gtk4-layer-shell documentation generated by gtk-doc + +%description doc +%summary. + + +%package vapi +Summary: gtk4-layer-shell vapi data + +%description vapi +%summary. + + +%prep +%autosetup + +%build +%meson -Ddocs=true +%meson_build + +%install +%meson_install + + +%files +%doc README.md +%license LICENSE +/usr/include/gtk4-layer-shell/gtk4-layer-shell.h +/usr/lib64/girepository-1.0/Gtk4LayerShell-1.0.typelib +/usr/lib64/libgtk4-layer-shell.so* +/usr/lib64/pkgconfig/gtk4-layer-shell-0.pc +/usr/share/gir-1.0/Gtk4LayerShell-1.0.gir + +%files doc +/usr/share/gtk-doc/html/gtk-layer-shell + +%files vapi +/usr/share/vala/vapi/gtk4-layer-shell-0.deps +/usr/share/vala/vapi/gtk4-layer-shell-0.vapi + + +%changelog +* Fri Apr 28 2023 windowsboy111 +- Initial package. diff --git a/anda/lib/gtk4-layer-shell/update.rhai b/anda/lib/gtk4-layer-shell/update.rhai new file mode 100644 index 0000000000..8285090f3d --- /dev/null +++ b/anda/lib/gtk4-layer-shell/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("wmww/gtk4-layer-shell"));