[neon/snap-packaging/kde-qt6-core-sdk] /: Core22 is ending up with a totally different path. Add sed line to fix.`
Scarlett Moore
null at kde.org
Mon Nov 18 13:37:24 GMT 2024
Git commit 0ed0c484a836a863331454e5c2d5fd262a6a8d74 by Scarlett Moore.
Committed on 18/11/2024 at 13:35.
Pushed by scarlettmoore into branch 'master'.
Core22 is ending up with a totally different path. Add sed line to fix.`
M +1 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/kde-qt6-core-sdk/-/commit/0ed0c484a836a863331454e5c2d5fd262a6a8d74
diff --git a/snapcraft.yaml b/snapcraft.yaml
index a6f66a8..3f686eb 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -388,6 +388,7 @@ parts:
- -usr/lib/*/*.a
override-stage: |
craftctl default
+ find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's:/build/kde-qt6-core22-sdk/stage/:/snap/$CRAFT_PROJECT_NAME/current:g' {}*" \;
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' {}*" \;
More information about the Neon-commits
mailing list