Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

snapcraft: Add poppler part and fix env for pyside

Scarlett Moorefe075168e177
diff --git a/packaging/linux/snap/snapcraft.yaml b/packaging/linux/snap/snapcraft.yaml
index d5c1526228..7b5c4fa559 100644
--- a/packaging/linux/snap/snapcraft.yaml
+++ b/packaging/linux/snap/snapcraft.yaml
@@ -32,6 +32,92 @@ slots:
name: org.kde.krita
bus: session
parts:
+ libgpgmepp-qt6:
+ build-packages:
+ - libassuan-dev
+ - libgpg-error-dev
+ - rsync
+ stage-packages:
+ - libassuan0
+ - libgpg-error0
+ source: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.23.2.tar.bz2
+ source-checksum: sha256/9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224
+ plugin: autotools
+ autotools-configure-parameters:
+ - --disable-gpgsm-test
+ - --enable-languages=cpp,qt6
+ - --prefix=/usr
+ - --enable-fixed-path=/snap/kde-qt6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ build-environment:
+ - LD_LIBRARY_PATH: $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/kf6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/usr
+ - PKG_CONFIG_PATH: /snap/kde-qt6-core24-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig
+ override-build: |
+ craftctl default
+ rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
+ poppler:
+ after:
+ - libgpgmepp-qt6
+ plugin: cmake
+ source: https://poppler.freedesktop.org/poppler-26.02.0.tar.xz
+ build-packages:
+ - cmake
+ - libfreetype6-dev
+ - libfontconfig1-dev
+ - libjpeg-dev
+ - zlib1g-dev
+ - liblcms2-dev
+ - libcurl4-gnutls-dev
+ - libopenjp2-7-dev
+ - libboost-dev
+ - libgl1-mesa-dev
+ stage-packages:
+ - libasn1-8-heimdal
+ - libbrotli1
+ - libcurl4t64
+ - libdouble-conversion3
+ - libfontconfig1
+ - libfreetype6
+ - libgraphite2-3
+ - libgssapi3-heimdal
+ - libharfbuzz0b
+ - libhcrypto5t64-heimdal
+ - libheimbase1-heimdal
+ - libheimntlm0-heimdal
+ - libhx509-5-heimdal
+ - libicu74
+ - libjbig0
+ - libjpeg-turbo8
+ - libkrb5-26-heimdal
+ - liblcms2-2
+ - libldap2
+ - libnghttp2-14
+ - libpcre2-16-0
+ - libpng16-16
+ - libpsl5
+ - libroken19-heimdal
+ - librtmp1
+ - libsasl2-2
+ - libssh-4
+ - libtiff6
+ - libwebp7
+ - libwind0-heimdal
+ - libx11-6
+ - libxau6
+ - libxcb1
+ - libxdmcp6
+ - libmd4c0
+ - libopenjpip7
+ cmake-parameters:
+ - -DCMAKE_INSTALL_PREFIX=/usr
+ - -DCMAKE_BUILD_TYPE=Release
+ - -DQT_MAJOR_VERSION=6
+ - -DENABLE_QT5=OFF
+ - -DENABLE_QT6=ON
+ - -DBUILD_TESTING=OFF
+ - -DENABLE_NSS3=OFF
+ override-build: |
+ craftctl default
+ rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
quazip:
source: https://github.com/stachenov/quazip.git
source-tag: v1.5
@@ -64,6 +150,7 @@ parts:
after:
- kdcraw
- quazip
+ - poppler
source: .
source-type: local
plugin: cmake
@@ -76,6 +163,8 @@ parts:
- -DBUILD_KRITA_QT_DESIGNER_PLUGINS=OFF
- -DBUILD_WITH_QT6=ON
- -DALLOW_UNSTABLE=QT6
+ - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kde-qt6-core24-sdk/current\\;/snap/kf6-core24-sdk/current;/snap/kde-pyside6-core24-sdk/current\\;/usr"
+ - "-DCMAKE_PREFIX_PATH=$CRAFT_STAGE\\:/snap/kde-qt6-core24-sdk/current\\:/snap/kf6-core24-sdk/current\\:/snap/kde-pyside6-core24-sdk/current\\:/usr"
build-packages:
- cmake
- gettext
@@ -161,6 +250,10 @@ parts:
- libsdl2-2.0-0
- libmlt++7
- libimath-3-1-29
+ build-environment:
+ - DICPATH: "$SNAP/usr/share/hunspell"
+ - PYSIDE_DESIGNER_PLUGINS: /snap/kde-pyside6-core24-sdk/current/usr/lib/x86_64-linux-gnu/qt6/plugins/designer
+ - PYTHONPATH: /snap/kde-qt6-core24-sdk/current/usr/lib/python3.12:/snap/kde-qt6-core24-sdk/current/usr/lib/python3/dist-packages:/snap/kde-pyside6-core24-sdk/current/usr/lib/python3.12:/snap/kde-pyside6-core24-sdk/current/usr/lib/python3/dist-packages${PYTHONPATH:+:$PYTHONPATH}
prime:
- -usr/lib/*/cmake/*
- -usr/include/*