Skip to content

Commit

Permalink
snap: rename to gpu-2404
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq committed Apr 24, 2024
1 parent 4441f3d commit e40102a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ layout:
bind: $SNAP/usr/share/icons
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gdk-pixbuf-2.0:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gdk-pixbuf-2.0
/usr/share/drirc.d: # Used by mesa-core24 for app specific workarounds
symlink: $SNAP_COMMON/graphics/usr/share/drirc.d
/usr/share/X11/XErrorDB: # Used by graphics-core24 for X11
symlink: $SNAP_COMMON/graphics/usr/share/X11/XErrorDB
/usr/share/X11/locale: # Used by graphics-core24 for X11
symlink: $SNAP_COMMON/graphics/usr/share/X11/locale
/usr/share/drirc.d: # Used by mesa-2404 for app specific workarounds
symlink: $SNAP_COMMON/gpu/usr/share/drirc.d
/usr/share/X11/XErrorDB: # Used by gpu-2404 for X11
symlink: $SNAP_COMMON/gpu/usr/share/X11/XErrorDB
# these could be avoided through a desktop plug
/etc/gtk-3.0:
bind: $SNAP/etc/gtk-3.0
Expand All @@ -57,7 +55,7 @@ apps:
confined-shell:
command-chain:
- bin/run-shell
- bin/graphics-core24-wrapper
- bin/gpu-2404-wrapper
command: usr/local/bin/miriway
desktop: usr/share/wayland-sessions/confined-shell.desktop
slots:
Expand Down Expand Up @@ -185,7 +183,7 @@ parts:
"/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders" > "$CRAFT_PRIME/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gdk-pixbuf-2.0/2.10.0/loaders.cache"
sed s!$CRAFT_PRIME!!g --in-place "$CRAFT_PRIME/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gdk-pixbuf-2.0/2.10.0/loaders.cache"
graphics-core:
gpu-snap:
after:
- miriway
- env
Expand All @@ -195,20 +193,20 @@ parts:
- icons
- glue
- misc
source: https://github.com/canonical/graphics-core.git
source: https://github.com/canonical/gpu-snap.git
plugin: dump
override-prime: |
craftctl default
${CRAFT_PART_SRC}/bin/graphics-core24-cleanup mesa-core24
${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404
rm -rf ${CRAFT_PRIME}/{bug,doc,lintian,man}
prime:
- bin/graphics-core24-wrapper
- bin/gpu-2404-wrapper

plugs:
graphics-core24:
gpu-2404:
interface: content
target: $SNAP/graphics
default-provider: mesa-core24
target: $SNAP/gpu
default-provider: mesa-2404

platforms:
amd64:
Expand Down

0 comments on commit e40102a

Please sign in to comment.