Warning, /education/labplot/snapcraft.yaml is written in an unsupported language. File is not indexed.

0001 
0002 # SPDX-FileCopyrightText: 2023 Scarlett Moore <sgmoore@kde.org>
0003 #
0004 # SPDX-License-Identifier: CC0-1.0
0005 ---
0006 name: labplot
0007 confinement: strict
0008 grade: stable
0009 base: core22
0010 adopt-info: labplot
0011 apps:
0012     labplot:
0013         # extensions:
0014         # - kde-neon
0015         common-id: org.kde.labplot2.desktop
0016         desktop: usr/share/applications/org.kde.labplot2.desktop
0017         command: usr/bin/labplot2
0018         plugs:
0019         - home
0020         - desktop
0021         - desktop-legacy
0022         - opengl
0023         - wayland
0024         - x11
0025         - audio-playback
0026         - unity7
0027         - network
0028         - network-bind
0029         - cups
0030         command-chain:
0031         - bin/tmpdir
0032         - snap/command-chain/desktop-launch
0033 assumes:
0034 - snapd2.58.3
0035 compression: lzo
0036 plugs:
0037     desktop:
0038         mount-host-font-cache: false
0039     icon-themes:
0040         interface: content
0041         target: $SNAP/data-dir/icons
0042         default-provider: gtk-common-themes
0043     sound-themes:
0044         interface: content
0045         target: $SNAP/data-dir/sounds
0046         default-provider: gtk-common-themes
0047     kf5-5-111-qt-5-15-11-core22:
0048         content: kf5-5-111-qt-5-15-11-core22-all
0049         interface: content
0050         default-provider: kf5-5-111-qt-5-15-11-core22
0051         target: $SNAP/kf5
0052     foo-install-cups:
0053         interface: content
0054         content: foo
0055         default-provider: cups
0056         target: $SNAP_DATA/foo
0057 environment:
0058     SNAP_DESKTOP_RUNTIME: $SNAP/kf5
0059     QT_QPA_PLATFORMTHEME: flatpak
0060     QT_QPA_FLATPAK_PLATFORMTHEME: kde
0061     HOME: $SNAP_REAL_HOME
0062     XDG_CACHE_HOME: $SNAP_USER_COMMON/.cache
0063     XDG_CONFIG_HOME: $SNAP_USER_COMMON/.config
0064     XDG_DATA_HOME: $SNAP_USER_COMMON/.local/share
0065 hooks:
0066     configure:
0067         plugs:
0068         - desktop
0069         command-chain:
0070         - snap/command-chain/hooks-configure-desktop
0071 layout:
0072     /usr/share/X11:
0073         symlink: $SNAP/kf5/usr/share/X11
0074 slots:
0075     session-dbus-interface:
0076         interface: dbus
0077         name: org.kde.labplot
0078         bus: session
0079 package-repositories:
0080 -   type: apt
0081     components:
0082     - main
0083     suites:
0084     - jammy
0085     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0086     url: http://origin.archive.neon.kde.org/user
0087     key-server: keyserver.ubuntu.com
0088 parts:
0089     kde-neon:
0090         source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0091         source-type: local
0092         plugin: make
0093         make-parameters:
0094         - PLATFORM_PLUG=kf5-5-111-qt-5-15-11-core22
0095         build-snaps:
0096         - kf5-5-111-qt-5-15-11-core22-sdk
0097         build-environment:
0098         - &id001
0099             PATH: /snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0100         - &id002
0101             XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
0102         - &id003
0103             XDG_CONFIG_HOME: $CRAFT_STAGE/etc/xdg:/snap/kf5-5-111-qt-5-15-11-core22-sdk/current/etc/xdg:/etc/xdg${XDG_CONFIG_HOME:+:$XDG_CONFIG_HOME}
0104         - &id004
0105             CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-111-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0106     launchers:
0107         source: snap/local/launchers
0108         plugin: dump
0109         organize:
0110             '*': bin/
0111     qxlsx:
0112         plugin: cmake
0113         source: https://github.com/QtExcel/QXlsx.git
0114         source-tag: v1.4.6
0115         source-subdir: QXlsx
0116         build-packages:
0117         - cmake
0118         - qtbase5-private-dev
0119         cmake-parameters:
0120         - "-DCMAKE_INSTALL_PREFIX=/usr"
0121         - "-DCMAKE_BUILD_TYPE=Release"
0122         - "-DENABLE_TESTING=OFF"
0123         - "-DBUILD_TESTING=OFF"
0124         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0125         - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current"
0126         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0127         prime:
0128         - "-usr/lib/*/cmake/*"
0129         - "-usr/include/*"
0130         - "-usr/share/ECM/*"
0131         - "-usr/share/doc/*"
0132         - "-usr/share/man/*"
0133         - "-usr/share/icons/breeze-dark*"
0134         - "-usr/bin/X11"
0135         - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0136         - "-usr/lib/aspell/*"
0137         - "-usr/share/lintain"
0138         build-environment: &id005
0139         - *id001
0140         - *id002
0141         - *id003
0142         - *id004
0143     labplot:
0144         after:
0145         - kde-neon
0146         - qxlsx
0147         parse-info:
0148         - usr/share/metainfo/org.kde.labplot2.appdata.xml
0149         plugin: cmake
0150         build-packages:
0151         - libqt5mqtt-dev
0152         - libcantorlibs-dev
0153         - libkf5doctools-dev
0154         - libhdf5-dev
0155         - libgsl-dev
0156         - libfftw3-dev
0157         - bison
0158         - kuserfeedback-dev
0159         - libnetcdf-dev
0160         - libcfitsio-dev
0161         - libcerf-dev
0162         - liblz4-dev
0163         - gettext
0164         - libpoppler-dev
0165         - libpoppler-qt5-dev
0166         - liborigin-dev
0167         - libreadstat-dev
0168         - libmatio-dev
0169         - libmarkdown2-dev
0170         - libfast5-dev
0171         stage-packages:
0172         - kio
0173         - libkuserfeedbackwidgets1
0174         - libgsl27
0175         - libfftw3-double3
0176         - bison
0177         - libhdf5-103
0178         - libxcb-keysyms1
0179         - libxcb1
0180         - libasn1-8-heimdal
0181         - libbrotli1
0182         - libcantorlibs28
0183         - libcerf1
0184         - libcfitsio9
0185         - libcurl3-gnutls
0186         - libgs9
0187         - libgssapi3-heimdal
0188         - libhcrypto4-heimdal
0189         - libheimbase1-heimdal
0190         - libheimntlm0-heimdal
0191         - libhx509-5-heimdal
0192         - libidn12
0193         - libijs-0.35
0194         - libjbig0
0195         - libjbig2dec0
0196         - libkrb5-26-heimdal
0197         - liblcms2-2
0198         - libldap-2.5-0
0199         - libnetcdf19
0200         - libnghttp2-14
0201         - libnspr4
0202         - libnss3
0203         - libopenjp2-7
0204         - libpaper1
0205         - libpsl5
0206         - libroken18-heimdal
0207         - librtmp1
0208         - libsasl2-2
0209         - libspectre1
0210         - libssh-4
0211         - libtiff5
0212         - libwebp7
0213         - libwind0-heimdal
0214         - liblz4-1
0215         - liborigin
0216         - libreadstat1
0217         - libmatio11
0218         - discount
0219         source: .
0220         source-type: local
0221         cmake-parameters:
0222         - "-DCMAKE_INSTALL_PREFIX=/usr"
0223         - "-DCMAKE_BUILD_TYPE=Release"
0224         - "-DENABLE_TESTING=OFF"
0225         - "-DBUILD_TESTING=OFF"
0226         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0227         - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current\\;/usr"
0228         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0229         prime:
0230         - "-usr/lib/*/cmake/*"
0231         - "-usr/include/*"
0232         - "-usr/share/ECM/*"
0233         - "-usr/share/doc/*"
0234         - "-usr/share/man/*"
0235         - "-usr/share/icons/breeze-dark*"
0236         - "-usr/bin/X11"
0237         - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0238         - "-usr/lib/aspell/*"
0239         - "-usr/share/lintian"
0240         build-environment: *id005
0241         override-pull: |
0242             craftctl default
0243               for file in ${CRAFT_PROJECT_DIR}/snap/local/patches/*
0244               do
0245                 patch -i $file -p 1
0246               done
0247     cleanup:
0248         after:
0249         - kde-neon
0250         - labplot
0251         plugin: nil
0252         override-prime:  |
0253             set -eux
0254             # # Unused libraries found by linter