File: snapcraft.yaml

package info (click to toggle)
marknote 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,724 kB
  • sloc: cpp: 3,006; xml: 295; makefile: 5; sh: 1
file content (72 lines) | stat: -rw-r--r-- 1,903 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# * Copyright 2024 Soumyadeep Ghosh (সৌম্যদীপ ঘোষ) <soumyadeepghosh2004@zohomail.in>
# * SPDX-License-Identifier: GPL-2.0-or-later
name: marknote
confinement: strict
grade: stable
base: core22
adopt-info: marknote
compression: lzo

apps:
  marknote:
    extensions:
      - kde-neon-6
    common-id: org.kde.marknote
    desktop: usr/share/applications/org.kde.marknote.desktop
    command: usr/bin/marknote
    plugs:
      - home
      - removable-media

slots:
  session-dbus-interface:
    interface: dbus
    name: org.kde.marknote
    bus: session

parts:
  kirigami-addons:
    source: https://invent.kde.org/libraries/kirigami-addons.git
    source-tag: 'v1.3.0'
    source-depth: 1
    plugin: cmake
    cmake-parameters:
      - -DBUILD_TESTING=OFF
      - -DCMAKE_BUILD_TYPE=Release
    prime:
      - -usr/include
      - -usr/lib/*/cmake

  kmime:
    source: https://invent.kde.org/pim/kmime.git
    source-tag: 'v24.05.2'
    source-depth: 1
    plugin: cmake
    cmake-parameters:
      - -DBUILD_TESTING=OFF
      - -DCMAKE_BUILD_TYPE=Release
    prime:
      - -usr/include
      - -usr/lib/*/cmake

  marknote:
    after: [kirigami-addons, kmime]
    parse-info:
      - usr/share/metainfo/org.kde.marknote.metainfo.xml
    plugin: cmake
    source: https://invent.kde.org/office/marknote/-/archive/v1.3.0/marknote-v1.3.0.tar.gz
    build-environment:
      - CMAKE_PREFIX_PATH: $CRAFT_STAGE/usr:/snap/kde-qt6-core22-sdk/current/usr:/snap/kf6-core22-sdk/current/usr${CMAKE_PREFIX_PATH:+:$CMAKE_PREFIX_PATH}
    cmake-parameters:
      - -DCMAKE_INSTALL_PREFIX=/usr
      - -DCMAKE_BUILD_TYPE=Release
      - -DENABLE_TESTING=OFF
      - -DBUILD_TESTING=OFF
    prime:
      - -usr/lib/*/cmake/*
      - -usr/include/*
      - -usr/share/ECM/*
      - -usr/share/man/*
      - -usr/share/icons/breeze-dark*
      - -usr/lib/aspell/*
      - -usr/share/lintian