summaryrefslogtreecommitdiff
path: root/snap
diff options
context:
space:
mode:
authorazhn <anthony.zh.oon@gmail.com>2025-04-14 21:20:03 +1000
committerazhn <anthony.zh.oon@gmail.com>2025-06-28 19:02:30 +1000
commit46b86570f21f68a32f6ae29caeb8e816ba289f67 (patch)
treed05c232ed7761b0a9c0040073920e9ceeadd4cd8 /snap
parent33e07c87c90242cf529dce6975538ced58242fdc (diff)
deps: Enable building gtk4-layer-shell without system integration
Diffstat (limited to 'snap')
-rw-r--r--snap/snapcraft.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index d7fc63712..7c8b6dc4f 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -76,9 +76,10 @@ parts:
- git
- patchelf
- gettext
+ # TODO: Remove -fno-sys=gtk4-layer-shell when we upgrade to a version that packages it Ubuntu 24.10+
override-build: |
craftctl set version=$(cat VERSION)
- $CRAFT_PART_SRC/../../zig/src/zig build -Dpatch-rpath=\$ORIGIN/../usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/core24/current/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR -Doptimize=ReleaseFast -Dcpu=baseline
+ $CRAFT_PART_SRC/../../zig/src/zig build -Dpatch-rpath=\$ORIGIN/../usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/core24/current/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR -Doptimize=ReleaseFast -Dcpu=baseline -fno-sys=gtk4-layer-shell
cp -rp zig-out/* $CRAFT_PART_INSTALL/
# Install libgtk4-layer-shell.so
mkdir -p $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR