[neon/snap-packaging/qt-common-themes-sdk] /: add build env
Scarlett Moore
null at kde.org
Sat Mar 7 14:44:27 GMT 2026
Git commit 3786704a01fb69b2396b5469f0fa126cecdeabb6 by Scarlett Moore.
Committed on 07/03/2026 at 14:44.
Pushed by scarlettmoore into branch 'master'.
add build env
M +18 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/qt-common-themes-sdk/-/commit/3786704a01fb69b2396b5469f0fa126cecdeabb6
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 952daf8..7ec4d4d 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -24,6 +24,12 @@ parts:
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
+ build-environment: &buildenvironment
+ - PATH: /snap/kde-qt6-core24-sdk/current/usr/bin${PATH:+:$PATH}
+ - PKG_CONFIG_PATH: /snap/kde-qt6-core24-sdk/current/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
+ - XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/snap/kde-qt6-core24-sdk/current/usr/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
+ - XDG_CONFIG_HOME: $CRAFT_STAGE/etc/xdg:/snap/kde-qt6-core24-sdk/current/etc/xdg:/etc/xdg${XDG_CONFIG_HOME:+:$XDG_CONFIG_HOME}
+ - LD_LIBRARY_PATH: "/snap/kde-qt6-core24-sdk/current/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}:/snap/kde-qt6-core24-sdk/current/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/libproxy:/snap/kde-qt6-core24-sdk/current/usr/lib:$CRAFT_STAGE/usr/lib:$CRAFT_STAGE/lib/:$CRAFT_STAGE/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
ocean-sound-theme:
source: https://invent.kde.org/plasma/ocean-sound-theme.git
source-type: git
@@ -36,6 +42,7 @@ parts:
- kf6-core24-sdk/latest/beta
plugin: cmake
cmake-parameters: *cmakeparameters
+ build-environment: *buildenvironment
oxygen-sounds:
source: https://invent.kde.org/plasma/oxygen-sounds.git
source-type: git
@@ -48,6 +55,7 @@ parts:
- kf6-core24-sdk/latest/beta
plugin: cmake
cmake-parameters: *cmakeparameters
+ build-environment: *buildenvironment
layer-shell-qt:
source: https://invent.kde.org/plasma/layer-shell-qt.git
source-type: git
@@ -66,6 +74,7 @@ parts:
- libwayland-client0
plugin: cmake
cmake-parameters: *cmakeparameters
+ build-environment: *buildenvironment
kwayland:
after:
- layer-shell-qt
@@ -85,6 +94,7 @@ parts:
- libwayland-client0
plugin: cmake
cmake-parameters: *cmakeparameters
+ build-environment: *buildenvironment
libplasma:
source: https://invent.kde.org/plasma/libplasma.git
source-type: git
@@ -114,6 +124,7 @@ parts:
- libxcb1
plugin: cmake
cmake-parameters: *cmakeparameters
+ build-environment: *buildenvironment
breeze:
after:
- kwayland
@@ -139,6 +150,7 @@ parts:
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
- -DBUILD_QT5=OFF
+ build-environment: *buildenvironment
breeze-gtk:
source: https://invent.kde.org/plasma/breeze-gtk.git
source-type: git
@@ -164,6 +176,7 @@ parts:
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
+ build-environment: *buildenvironment
oxygen:
after:
- kwayland
@@ -193,6 +206,7 @@ parts:
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
- -DBUILD_QT5=OFF
+ build-environment: *buildenvironment
oxygen-gtk:
after:
- kwayland
@@ -221,6 +235,7 @@ parts:
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
+ build-environment: *buildenvironment
qt6gtk2:
source: https://github.com/trialuser02/qt6gtk2.git
plugin: qmake
@@ -229,6 +244,7 @@ parts:
build-snaps:
- kde-qt6-core24-sdk/latest/beta
- kf6-core24-sdk/latest/beta
+ build-environment: *buildenvironment
kvantum:
source: https://github.com/tsujan/Kvantum.git
plugin: cmake
@@ -237,6 +253,7 @@ parts:
- kde-qt6-core24-sdk/latest/beta
- kf6-core24-sdk/latest/beta
cmake-parameters: *cmakeparameters
+ build-environment: *buildenvironment
kde-gtk-config:
source: https://invent.kde.org/plasma/kde-gtk-config.git
plugin: cmake
@@ -259,3 +276,4 @@ parts:
mkdir -p $CRAFT_STAGE/usr/share/glib-2.0/schemas
cp -rfv /usr/share/glib-2.0/schemas/* $CRAFT_STAGE/usr/share/glib-2.0/schemas/
craftctl default
+ build-environment: *buildenvironment
More information about the Neon-commits
mailing list