[neon/snap-packaging/kde-qt6-core-sdk] /: sdk: fix other prefixes also

Soumyadeep Ghosh null at kde.org
Thu May 30 12:04:25 BST 2024


Git commit 4d13f449fd1312395222cb18801080b77b8b856c by Soumyadeep Ghosh.
Committed on 29/05/2024 at 15:25.
Pushed by scarlettmoore into branch 'master'.

sdk: fix other prefixes also

M  +4    -2    snapcraft.yaml

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

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 9eebe95..8ebbe20 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -382,9 +382,11 @@ parts:
       set -eux
       for PC in $(find . -path "*/pkgconfig/*.pc")
       do
-        echo -n "Current Prefix " && grep -o '^prefix=.*$' $PC | cut -d'=' -f2
         sed -i 's|^prefix=.*$|prefix=/snap/$CRAFT_PROJECT_NAME/current/usr|g' $PC
-        echo -n "New Prefix " && grep -o '^prefix=.*$' $PC | cut -d'=' -f2
+        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
+        sed -i 's|modlibexecdir=/usr|modlibexecdir=${prefix}|g' $PC
       done
       for snap in "core22" "ffmpeg-2204-sdk"; do
         cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$CRAFT_PRIME/{}" \;


More information about the Neon-commits mailing list