Package Details: gtk4-layer-shell 1.0.2-2

Git Clone URL: https://aur.archlinux.org/gtk4-layer-shell.git (read-only, click to copy)
Package Base: gtk4-layer-shell
Description: A library to create panels and other desktop components for Wayland using the Layer Shell protocol and GTK4
Upstream URL: https://github.com/wmww/gtk4-layer-shell
Licenses: MIT
Submitter: SilverRainZ
Maintainer: SilverRainZ
Last Packager: SilverRainZ
Votes: 6
Popularity: 0.37
First Submitted: 2023-04-28 16:15 (UTC)
Last Updated: 2023-11-25 04:04 (UTC)

Latest Comments

1 2 Next › Last »

loqusion commented on 2024-03-31 04:46 (UTC) (edited on 2024-03-31 04:48 (UTC) by loqusion)

With paru, you can something like the following to install without the tests:

paru -S --mflags '--nocheck' gtk4-layer-shell

Of course, this is no substitute for rewriting the tests and/or the PKGBUILD so that installing doesn't require this kind of manual intervention.

benz commented on 2024-03-28 06:52 (UTC)

Can you disable running the tests? It's utterly pointless to be not able to build because of failing tests. A lot of people use "incompatible" GTK themes that will lead to test failures, while not having any problems runtime.

Running tests on build that depend on the currently enabled GTK theme is pointless as that's not a constant.

sneakomatic commented on 2024-03-15 10:21 (UTC) (edited on 2024-03-15 10:21 (UTC) by sneakomatic)

installation fails with:


Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 99, in <module>
    from giscanner.utils import dll_dirs
  File "/usr/lib/gobject-introspection/giscanner/utils.py", line 385, in <module>
    import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'
[60/134] Compiling C object test/test-auto-exclusive-zon...integration-tests_test-auto-exclusive-zone-no-margin.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: gtk4-layer-shell-exit status 4

guh commented on 2024-03-12 18:40 (UTC) (edited on 2024-03-12 18:51 (UTC) by guh)

@benz, I had the same problem earlier. This seems to be a problem with your theme. (more specifically for me, the "gtkmix" function definition in Catppuccin seems to have been removed) I fixed this by reverting back to Adwaita. Hopefully this helps!

benz commented on 2024-03-12 10:23 (UTC)

Building fails for me.

 4/33 integration-test-menu-popup                                    FAIL            0.26s   exit status 1
>>> MALLOC_PERTURB_=4 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 GTK4_LAYER_SHELL_BUILD=/home/andrej/.cache/yay/gtk4-layer-shell/src/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/python3 /home/andrej/.cache/yay/gtk4-layer-shell/src/gtk4-layer-shell-1.0.2/test/run-integration-test.py /home/andrej/.cache/yay/gtk4-layer-shell/src/build/test/test-menu-popup

SilverRainZ commented on 2023-11-24 11:37 (UTC)

@pentamassiv updated

pentamassiv commented on 2023-09-21 21:50 (UTC)

Could you please update the PKGBUILD to the following:

# Maintainer: Shengyu Zhang <la@archlinuxcn.org>
# Contributor: Brett Cornwall <ainola@archlinux.org>
# Contributor: Adrian Perez de Castro <aperez@igalia.com>

pkgdesc='A library to create panels and other desktop components for Wayland using the Layer Shell protocol and GTK4'
pkgname=gtk4-layer-shell
pkgver=1.0.1
pkgrel=1
arch=(x86_64 aarch64)
license=(MIT)
url="https://github.com/wmww/gtk4-layer-shell"
depends=(
    "gtk4"
    "wayland"
)
makedepends=(
    "gtk-doc"
    "gobject-introspection"
    "meson"
    "ninja"
    "valabind"
    "python"
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('f7b8d352065a540d4cb7b0cbfdeb2c2efea55b57cfb717de5c880fde41e65cb1')

build() {
    meson setup \
          --prefix=/usr \
          --wrap-mode=nofallback \
          --buildtype=plain \
          -Dtests=true \
          -Ddocs=true \
          -Dintrospection=true \
          -Dvapi=true \
          -Dexamples=true \
          "$pkgname-$pkgver" \
          build
    ninja -C build
}

# See: https://github.com/wmww/gtk4-layer-shell/issues/12
# check() {
# ninja -C build test
# }

package() {
    DESTDIR="$pkgdir" ninja -C build install
    install -D -m 644 "$pkgname-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

pentamassiv commented on 2023-08-03 22:35 (UTC)

The package also works on my Pinephone (aarch64), so could you please change the line arch=(x86_64) to arch=(any)?

pentamassiv commented on 2023-08-03 17:18 (UTC)

Version 1.0.1 was released, which contains the fix

stbowers commented on 2023-06-13 20:20 (UTC)

In the mean time, if you want to install this alongside extra/gtk-layer-shell before the developer makes a new release with this fix, you can manually apply the patch with the following modification to the PKGBUILD:

--- gtk4-layer-shell.PKGBUILD.original  2023-06-13 13:59:24.000000000 -0600
+++ gtk4-layer-shell.PKGBUILD   2023-06-13 14:06:36.340988132 -0600
@@ -21,8 +21,15 @@
     "valabind"
     "python"
 )
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('89d25ca0a7c2db7795c6bfb46e7d504ee71f005b3ea8580c8e9e35b57027be92')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+        "14.patch::$url/pull/14.patch")
+sha256sums=('89d25ca0a7c2db7795c6bfb46e7d504ee71f005b3ea8580c8e9e35b57027be92'
+            '6260a4947890f9d30f0a2f4ad445925503234dfeb27d7848c836816855973f98')
+
+prepare() {
+    cd "$pkgname-$pkgver"
+    patch --strip=1 --input="${srcdir}/14.patch"
+}

 build() {
     meson --prefix=/usr \