[neon/snap-packaging/kde-qt6-core-sdk] /: Prefix...

Scarlett Moore null at kde.org
Fri May 31 13:42:06 BST 2024


Git commit 475fb3c4d3cb7d802af098bf3a36f95500a7306f by Scarlett Moore.
Committed on 31/05/2024 at 12:41.
Pushed by scarlettmoore into branch 'master'.

Prefix...

M  +4    -4    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kde-qt6-core-sdk/-/commit/475fb3c4d3cb7d802af098bf3a36f95500a7306f

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 8ce8296..9d61c83 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -367,10 +367,10 @@ parts:
     override-stage: |
         craftctl default
         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=${prefix}|g' {}*" \;
-        find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's|includedir=/usr|includedir=${prefix}|g' {}*" \;
-        find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's|exec_prefix=/usr|exec_prefix=${prefix}|g' {}*" \;
-        find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's|modlibexecdir=/usr|modlibexecdir=${prefix}|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|exec_prefix=/usr|exec_prefix=/snap/$CRAFT_PROJECT_NAME/current/usr|g' {}*" \;
+        find $CRAFT_STAGE -type f,l -name "*.pc" -exec bash -c "sed -i 's|modlibexecdir=/usr|modlibexecdir=/snap/$CRAFT_PROJECT_NAME/current/usr|g' {}*" ;
     prime:
       - -etc
       - -lib


More information about the Neon-commits mailing list