Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: walker-0.12.16, gtk4-layer-shell-1.1.0 #53892

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
@@ -3967,6 +3967,8 @@ libigdgmm.so.12 intel-gmmlib-22.1.3_1
libigfxcmrt.so.7 intel-media-driver-21.3.5_1
libigraph.so.3 igraph-0.10.2_1
libgtk-layer-shell.so.0 gtk-layer-shell-0.1.0_1
libgtk4-layer-shell.so.0 gtk4-layer-shell-1.1.0_1
liblayer-shell-preload.so gtk4-layer-shell-1.1.0_1
librdkafka.so.1 librdkafka-1.4.4_3
librdkafka++.so.1 librdkafka-1.4.4_3
libraft.so.0 raft-0.18.2_1
1 change: 1 addition & 0 deletions srcpkgs/gtk4-layer-shell-devel
86 changes: 86 additions & 0 deletions srcpkgs/gtk4-layer-shell/patches/remove-failing-tests.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
diff -u --recursive --new-file a/test/layer-tests/meson.build b/test/layer-tests/meson.build
--- a/test/layer-tests/meson.build 2025-01-29 12:10:41.000000000 -0500
+++ b/test/layer-tests/meson.build 2025-03-02 13:59:32.437263471 -0500
@@ -19,7 +19,6 @@
'test-get-explicit-exclusive-zone',
'test-get-auto-exclusive-zone',
'test-exclusive-zone-below-negative-1',
- 'test-layer-surface-popup',
'test-xdg-toplevel-popup-with-layer-surface',
'test-xdg-toplevel-popup-without-layer-surface',
'test-close-layer-surface',
diff -u --recursive --new-file a/test/layer-tests/test-layer-surface-popup.c b/test/layer-tests/test-layer-surface-popup.c
--- a/test/layer-tests/test-layer-surface-popup.c 2025-01-29 12:10:41.000000000 -0500
+++ b/test/layer-tests/test-layer-surface-popup.c 1969-12-31 19:00:00.000000000 -0500
@@ -1,44 +0,0 @@
-#include "integration-test-common.h"
-
-static GtkWindow *layer_window;
-static GtkWidget *layer_dropdown;
-static const char *options[] = {"Foo", "Bar", "Baz", NULL};
-
-static void callback_0() {
- EXPECT_MESSAGE(zwlr_layer_shell_v1 .get_layer_surface);
-
- // The popup is weirdly slow to open, so slow the tests down
- step_time = 600;
-
- layer_window = GTK_WINDOW(gtk_window_new());
- layer_dropdown = gtk_drop_down_new_from_strings(options);
- gtk_window_set_child(layer_window, layer_dropdown);
- gtk_layer_init_for_window(layer_window);
- gtk_window_present(layer_window);
-}
-
-static void callback_1() {
- EXPECT_MESSAGE(xdg_wm_base .get_xdg_surface);
- EXPECT_MESSAGE(xdg_surface .get_popup nil);
- EXPECT_MESSAGE(zwlr_layer_surface_v1 .get_popup);
- EXPECT_MESSAGE(xdg_popup .grab);
-
- UNEXPECT_MESSAGE(xdg_popup .destroy);
-
- g_signal_emit_by_name(layer_dropdown, "activate", NULL);
-}
-
-static void callback_2() {
- EXPECT_MESSAGE(xdg_popup .destroy);
- EXPECT_MESSAGE(xdg_surface .destroy);
- EXPECT_MESSAGE(zwlr_layer_surface_v1 .destroy);
-
- gtk_window_close(layer_window);
- gtk_window_close(layer_window);
-}
-
-TEST_CALLBACKS(
- callback_0,
- callback_1,
- callback_2,
-)
diff -u --recursive --new-file a/test/smoke-tests/meson.build b/test/smoke-tests/meson.build
--- a/test/smoke-tests/meson.build 2025-01-29 12:10:41.000000000 -0500
+++ b/test/smoke-tests/meson.build 2025-03-02 13:59:18.690961683 -0500
@@ -3,6 +3,5 @@
'test-c-demo',
'test-c-session-lock',
'test-python-example',
- 'test-python-session-lock',
'test-vala-example',
]
diff -u --recursive --new-file a/test/smoke-tests/test-python-session-lock.py b/test/smoke-tests/test-python-session-lock.py
--- a/test/smoke-tests/test-python-session-lock.py 2025-01-29 12:10:41.000000000 -0500
+++ b/test/smoke-tests/test-python-session-lock.py 1969-12-31 19:00:00.000000000 -0500
@@ -1,13 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import smoke_test_common
-
-script_path = os.path.join(os.path.dirname(__file__), '..', '..', 'examples', 'session-lock.py')
-assert os.path.isfile(script_path), 'script not found at ' + script_path
-src_build_dir = smoke_test_common.build_dir() + '/src'
-env = {
- 'GI_TYPELIB_PATH': src_build_dir,
- 'LD_LIBRARY_PATH': src_build_dir,
-}
-smoke_test_common.run(['python3', script_path], 'lock', env)
42 changes: 42 additions & 0 deletions srcpkgs/gtk4-layer-shell/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Template file for 'gtk4-layer-shell'
pkgname=gtk4-layer-shell
version=1.1.0
revision=1
build_style=meson
build_helper="gir"
hostmakedepends="gobject-introspection pkg-config"
makedepends="gtk4-devel wayland-devel wayland-protocols"
checkdepends="dejavu-fonts-ttf gtk4 python3 python3-gobject vala xvfb-run"
short_desc="Library to create panels and other desktop components for Wayland (GTK4)"
maintainer="Xavier Fortier <xavier.fortier@proton.me>"
license="MIT"
homepage="https://github.com/wmww/gtk4-layer-shell"
changelog="https://raw.githubusercontent.com/wmww/gtk4-layer-shell/main/CHANGELOG.md"
distfiles="https://github.com/wmww/gtk4-layer-shell/archive/v${version}.tar.gz"
checksum=98284281260a5eef5b4f63a55f16c4bf6a788a1020a6db037ecb0f71fa336988
make_check_pre="xvfb-run"

if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+="-Dexamples=true -Dtests=true"
fi

if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wayland-devel valabind"
fi

post_install() {
vlicense LICENSE
}

gtk4-layer-shell-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/girepository-1.0
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
vmove usr/share/vala
}
}
32 changes: 32 additions & 0 deletions srcpkgs/walker/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Template file for 'walker'
pkgname=walker
version=0.12.16
revision=1
build_style=go
build_helper="gir"
go_import_path=github.com/abenz1267/walker
go_package="./cmd"
hostmakedepends="gobject-introspection pkg-config"
makedepends="gtk4-layer-shell-devel libvips-devel"
depends="gtk4-layer-shell wl-clipboard"
short_desc="Multi-Purpose highly extendable application launcher for Wayland"
maintainer="Xavier Fortier <xavier.fortier@proton.me>"
license="MIT"
homepage="https://github.com/abenz1267/walker"
changelog="https://github.com/abenz1267/walker/releases"
distfiles="https://github.com/abenz1267/walker/archive/v${version}.tar.gz"
checksum=182205de88aa4be1651e38f446b3816c134d79dc1cca6ad85e69d4834a5a50bd
make_check=no # See https://github.com/void-linux/void-packages/actions/runs/12976660965/job/36189194333?pr=53892

do_build() {
go build -o ${GOPATH}/bin/${pkgname} ${go_package}
}

post_install() {
vlicense LICENSE

local _conf="internal/config"
vinstall "${_conf}/config.default.toml" 644 etc/xdg/walker config.toml
vinstall "${_conf}/themes/default.toml" 644 etc/xdg/walker/themes
vinstall "${_conf}/themes/xdg_default.css" 644 etc/xdg/walker/themes default.css
}