[neon/snap-packaging/kde-qt6-core-sdk/work.core24] /: A working sed..

Scarlett Moore null at kde.org
Tue Dec 31 11:07:53 GMT 2024


Git commit 059df328e9a61cb5bc010b705196ff40201d101b by Scarlett Moore.
Committed on 31/12/2024 at 11:07.
Pushed by scarlettmoore into branch 'work.core24'.

A working sed..

M  +4    -1    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kde-qt6-core-sdk/-/commit/059df328e9a61cb5bc010b705196ff40201d101b

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 12a0d24..14c57fa 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -412,11 +412,14 @@ parts:
         find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:/root/stage:/snap/$CRAFT_PROJECT_NAME/current:g' {}*" \;
         find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:libdir=/usr:libdir=/snap/$CRAFT_PROJECT_NAME/current/usr:g' {}*" \;
         find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:includedir=/usr:includedir=/snap/$CRAFT_PROJECT_NAME/current/usr:g' {}*" \;
-        find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i "s:pkgdatadir=${pc_sysrootdir}${datarootdir}:pkgdatadir=${datarootdir}:g" {}*" \;
+        find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:pkgdatadir=.*$:pkgdatadir=/snap/$CRAFT_PROJECT_NAME/current/usr/share/wayland:g' {}*" \;
 
   cleanup:
     plugin: nil
     after: [debs]
+    build-snaps:
+      - core24
+      - ffmpeg-2404-sdk
     override-stage: |
       set -eux
       for snap in "core24" "ffmpeg-2404-sdk"; do


More information about the Neon-commits mailing list