Warning, /graphics/digikam/snapcraft.yaml is written in an unsupported language. File is not indexed.
0001
0002 # SPDX-FileCopyrightText: 2023-2024 Scarlett Moore <sgmoore@kde.org>
0003 #
0004 # SPDX-License-Identifier: CC0-1.0
0005 ---
0006 name: digikam
0007 base: core22
0008 adopt-info: digikam
0009 grade: stable
0010 confinement: strict
0011 apps:
0012 digikam:
0013 command: usr/bin/digikam
0014 common-id: org.kde.digikam.desktop
0015 desktop: usr/share/applications/org.kde.digikam.desktop
0016 # extensions:
0017 # - kde-neon
0018 plugs:
0019 - desktop
0020 - desktop-legacy
0021 - opengl
0022 - wayland
0023 - x11
0024 - audio-playback
0025 - browser-support
0026 - camera
0027 - home
0028 - mount-observe
0029 - network
0030 - network-bind
0031 - network-manager-observe
0032 - removable-media
0033 - udisks2
0034 - unity7
0035 - cups
0036 command-chain:
0037 - snap/command-chain/desktop-launch
0038 assumes:
0039 - snapd2.58.3
0040 compression: lzo
0041 plugs:
0042 desktop:
0043 mount-host-font-cache: false
0044 icon-themes:
0045 interface: content
0046 target: $SNAP/data-dir/icons
0047 default-provider: gtk-common-themes
0048 sound-themes:
0049 interface: content
0050 target: $SNAP/data-dir/sounds
0051 default-provider: gtk-common-themes
0052 kf5-5-113-qt-5-15-11-core22:
0053 content: kf5-5-113-qt-5-15-11-core22-all
0054 interface: content
0055 default-provider: kf5-5-113-qt-5-15-11-core22
0056 target: $SNAP/kf5
0057 foo-install-cups:
0058 interface: content
0059 content: foo
0060 default-provider: cups
0061 target: $SNAP_DATA/foo
0062 hunspell-dictionaries:
0063 content: hunspell-dictionaries
0064 interface: content
0065 target: "$SNAP/usr/share/hunspell"
0066 default-provider: hunspell-dictionaries:hunspell-dictionaries
0067 environment:
0068 SNAP_DESKTOP_RUNTIME: $SNAP/kf5
0069 DK_PLUGIN_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/plugins/digikam"
0070 PERL5LIB: "$SNAP/usr/share/perl5"
0071 LD_LIBRARY_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET:/snap/$SNAP/usr/lib:/snap/ffmpeg-2204/current/usr/lib/$CRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/lapack"
0072 DICPATH: "$SNAP/usr/share/hunspell"
0073 hooks:
0074 configure:
0075 plugs:
0076 - desktop
0077 command-chain:
0078 - snap/command-chain/hooks-configure-desktop
0079 layout:
0080 /usr/share/marble:
0081 symlink: $SNAP/usr/share/marble
0082 /usr/share/qt5:
0083 symlink: $SNAP/kf5/usr/share/qt5
0084 /usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/alsa-lib:
0085 symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/alsa-lib
0086 /usr/share/alsa:
0087 symlink: $SNAP/usr/share/alsa
0088 /usr/share/X11:
0089 symlink: $SNAP/kf5/usr/share/X11
0090 slots:
0091 session-dbus-interface:
0092 interface: dbus
0093 name: org.kde.digikam
0094 bus: session
0095 package-repositories:
0096 - type: apt
0097 components:
0098 - main
0099 suites:
0100 - jammy
0101 key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0102 url: https://origin.archive.neon.kde.org/user
0103 key-server: keyserver.ubuntu.com
0104 parts:
0105 kde-neon:
0106 source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0107 source-type: local
0108 plugin: make
0109 make-parameters:
0110 - PLATFORM_PLUG=kf5-5-113-qt-5-15-11-core22
0111 build-snaps:
0112 - kf5-5-113-qt-5-15-11-core22-sdk
0113 build-environment:
0114 - &id001
0115 PATH: /snap/kf5-5-113-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0116 - &id002
0117 XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/snap/kf5-5-113-qt-5-15-11-core22-sdk/current/usr/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
0118 - &id003
0119 XDG_CONFIG_HOME: $CRAFT_STAGE/etc/xdg:/snap/kf5-5-113-qt-5-15-11-core22-sdk/current/etc/xdg:/etc/xdg${XDG_CONFIG_HOME:+:$XDG_CONFIG_HOME}
0120 - &id004
0121 CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-113-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0122 digikam:
0123 after:
0124 - kde-neon
0125 parse-info:
0126 - usr/share/metainfo/org.kde.digikam.appdata.xml
0127 source: .
0128 source-type: local
0129 plugin: cmake
0130 build-packages:
0131 - appstream
0132 - bison
0133 - cmake
0134 - flex
0135 - gphoto2
0136 - libswscale-dev
0137 - libboost-graph-dev
0138 - libeigen3-dev
0139 - libexiv2-dev
0140 - libexpat1-dev
0141 - libheif-dev
0142 - libgphoto2-dev
0143 - libjpeg-dev
0144 - liblcms2-dev
0145 - liblensfun-dev
0146 - libmagick++-dev
0147 - libopencv-dev
0148 - libpng-dev
0149 - libtiff-dev
0150 - libusb-1.0-0-dev
0151 - libxslt1-dev
0152 - libxml2-dev
0153 - libglib2.0-dev
0154 build-snaps:
0155 - ffmpeg-2204-sdk
0156 stage-packages:
0157 - libexif12
0158 - libgphoto2-6
0159 - libgphoto2-port12
0160 - libheif1
0161 - libimage-exiftool-perl
0162 - libjpeg8
0163 - libjpeg-turbo8
0164 - liblensfun1
0165 - libltdl7
0166 - libtbb2
0167 - libwlocate0
0168 - libshp2
0169 - libx265-199
0170 - libxerces-c3.2
0171 - liburiparser1
0172 - libsz2
0173 - libsuperlu5
0174 - libspatialite7
0175 - librttopo1
0176 - libqhull-r8.0
0177 - libprotobuf23
0178 - libproj22
0179 - libpoppler118
0180 - libopencv-ml4.5d
0181 - libopencv-imgproc4.5d
0182 - libopencv-imgcodecs4.5d
0183 - libopencv-dnn4.5d
0184 - libopencv-core4.5d
0185 - libodbcinst2
0186 - libnetcdf19
0187 - libkmlengine1
0188 - libkmldom1
0189 - libkmlbase1
0190 - libhdf5-103
0191 - libhdf5-hl-100
0192 - libgif7
0193 - libgeotiff5
0194 - libgeos-c1v5
0195 - libgeos3.10.2
0196 - libgdcm3.0
0197 - libfyba0
0198 - libfreexl1
0199 - libfftw3-single3
0200 - libcharls2
0201 - libcfitsio9
0202 - libblosc1
0203 - libarpack2
0204 - libaec0
0205 - libmagickwand-6.q16-6
0206 - libmagickcore-6.q16-6
0207 - libmagick++-6.q16-8
0208 - libimath-3-1-29
0209 - libogdi4.1
0210 - libgdal30
0211 - libarmadillo10
0212 - libblas3
0213 - kimageformat-plugins
0214 - libexiv2-27
0215 stage-snaps:
0216 - ffmpeg-2204
0217 build-environment: &id005
0218 - *id001
0219 - *id002
0220 - *id003
0221 - *id004
0222 cmake-parameters:
0223 - "-DKDE_INSTALL_USE_QT_SYS_PATHS=FALSE"
0224 - "-DCMAKE_INSTALL_PREFIX=/usr"
0225 - "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
0226 - "-DBUILD_TESTING=OFF"
0227 - "-DDIGIKAMSC_CHECKOUT_PO=OFF"
0228 - "-DDIGIKAMSC_CHECKOUT_DOC=OFF"
0229 - "-DDIGIKAMSC_COMPILE_PO=OFF"
0230 - "-DDIGIKAMSC_COMPILE_DOC=ON"
0231 - "-DDIGIKAMSC_COMPILE_DIGIKAM=ON"
0232 - "-DENABLE_KFILEMETADATASUPPORT=OFF"
0233 - "-DENABLE_AKONADICONTACTSUPPORT=OFF"
0234 - "-DENABLE_MYSQLSUPPORT=OFF"
0235 - "-DENABLE_INTERNALMYSQL=OFF"
0236 - "-DENABLE_MEDIAPLAYER=ON"
0237 - "-DENABLE_LCMS2=ON"
0238 - "-DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=OFF"
0239 - "-DENABLE_DBUS=ON"
0240 - "-DENABLE_APPSTYLES=ON"
0241 - "-DENABLE_QWEBENGINE=ON"
0242 - "-DOpenCV_DIR=$CRAFT_STAGE/usr/share/OpenCV"
0243 - "-DENABLE_FACESENGINE_DNN=ON"
0244 - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-113-qt-5-15-11-core22-sdk/current\\;/snap/ffmpeg-2204/current"
0245 - "-Wno-dev"
0246 override-build: |
0247 craftctl default
0248
0249 sed -i "${CRAFT_PART_INSTALL}/usr/share/applications/org.kde.digikam.desktop" -e 's|Icon=digikam$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/digikam.svg|'
0250
0251 cd "${CRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps"
0252 gzip -d -c digikam.svgz > digikam.svg