[neon/snap-packaging/kde-qt6-core-sdk] /: Fix prefix to match what works for kf6.

Scarlett Moore null at kde.org
Fri May 31 12:19:09 BST 2024


Git commit a4fa78aa15982c18a333affc0ccc20f6b3dd1ebc by Scarlett Moore.
Committed on 31/05/2024 at 11:18.
Pushed by scarlettmoore into branch 'master'.

Fix prefix to match what works for kf6.

M  +1    -1    snapcraft.yaml

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

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 8ebbe20..39e3b55 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -382,7 +382,7 @@ parts:
       set -eux
       for PC in $(find . -path "*/pkgconfig/*.pc")
       do
-        sed -i 's|^prefix=.*$|prefix=/snap/$CRAFT_PROJECT_NAME/current/usr|g' $PC
+        sed -i 's:/root/stage:/snap/$CRAFT_PROJECT_NAME/current:g' $PC
         sed -i 's|libdir=/usr|libdir=${prefix}|g' $PC
         sed -i 's|includedir=/usr|includedir=${prefix}|g' $PC
         sed -i 's|exec_prefix=/usr|exec_prefix=${prefix}|g' $PC


More information about the Neon-commits mailing list