Skip to content

Commit

Permalink
build: migrate to core24
Browse files Browse the repository at this point in the history
  • Loading branch information
jssotomdz committed Sep 24, 2024
1 parent 91342a5 commit 23cc01c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gnome-recipes
adopt-info: gnome-recipes
base: core22
base: core24
summary: GNOME loves to cook
description: |
Recipes is an easy-to-use application that will help you to discover what to cook
Expand Down Expand Up @@ -75,20 +75,22 @@ parts:
- libgnome-autoar-0-dev
stage-packages:
- libgnome-autoar-0-0
build-snaps:
- gnome-46-2404-sdk/latest/candidate


cleanup:
after: [ gnome-recipes ]
plugin: nil
build-snaps: [core22, gtk-common-themes, gnome-42-2204]
build-snaps: [core24, gtk-common-themes, gnome-46-2404]
override-prime: |
set -eux
for snap in "core22" "gtk-common-themes" "gnome-42-2204"; do
for snap in "core24" "gtk-common-themes" "gnome-46-2404"; do
cd "/snap/$snap/current" && find . -type f,l -name *.so.* -exec rm -f "$CRAFT_PRIME/{}" \;
done
# remove cross-installed repeated libraries (in /usr/lib in the SDK, but in /usr/lib/TRIPLET
# here, and the opposite)
for snap in "core22" "gnome-42-2204"; do
for snap in "core24" "gnome-46-2404"; do
cd "/snap/$snap/current/usr/lib"
for filename in [ *.so* ]; do
rm -f "$CRAFT_PRIME/usr/lib/$CRAFT_ARCH_TRIPLET/$filename"
Expand Down

0 comments on commit 23cc01c

Please sign in to comment.