Commit 89a72a8a authored by Jonathan Riddell's avatar Jonathan Riddell 🏄
Browse files

add snap packaging file

parent 1838b6fd
---
name: kcalc
confinement: strict
grade: stable
base: core20
adopt-info: kcalc
apps:
kcalc:
common-id: org.kde.kcalc.desktop
command: kf5-launch kcalc
plugs:
- kde-frameworks-5-plug
- home
- x11
- opengl
- network
- network-bind
- audio-playback
- desktop
- desktop-legacy
- removable-media
slots:
session-dbus-interface:
interface: dbus
name: org.kde.kcalc.desktop
bus: session
plugs:
kde-frameworks-5-plug:
content: kde-frameworks-5-qt-5-15-core20-all
interface: content
default-provider: kde-frameworks-5-qt-5-15-core20
target: kf5
package-repositories:
- type: apt
components:
- main
suites:
- focal
key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
url: http://origin.archive.neon.kde.org/user
key-server: keyserver.ubuntu.com
parts:
kcalc:
parse-info:
- usr/share/metainfo/org.kde.kcalc.appdata.xml
build-snaps:
- kde-frameworks-5-qt-5-15-core20-sdk/latest/candidate
after:
- kde-frameworks-5-env
plugin: cmake
build-environment:
- CMAKE_BUILD_PARALLEL_LEVEL: "4"
build-packages:
- libmpfr-dev
- libgmp-dev
- qt5-default
- docbook-xml
- docbook-xsl
build-environment:
- CMAKE_BUILD_PARALLEL_LEVEL: "4"
- VERBOSE: "1"
stage-packages:
- libmpfr6
- libgmp10
source: http://download.kde.org/stable/release-service/20.12.3/src/kcalc-20.12.3.tar.xz
cmake-parameters:
- "-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
- "-DCMAKE_INSTALL_PREFIX=/usr"
- "-DCMAKE_BUILD_TYPE=Release"
- "-DENABLE_TESTING=OFF"
- "-DBUILD_TESTING=OFF"
- "-DKDE_SKIP_TEST_SETTINGS=ON"
- "-DCMAKE_FIND_ROOT_PATH=/root/stage\\;/snap/kde-frameworks-5-qt-5-15-core20-sdk/current"
- "-DCMAKE_FIND_ROOT_PATH=/snap/kde-frameworks-5-qt-5-15-core20-sdk/current"
filesets:
exclusion:
- "-usr/lib/*/cmake/*"
- "-usr/include/*"
- "-usr/share/ECM/*"
- "-usr/share/doc/*"
- "-usr/share/man/*"
- "-usr/share/icons/breeze-dark*"
- "-usr/bin/X11"
- "-usr/lib/gcc/x86_64-linux-gnu/6.0.0"
- "-usr/lib/aspell/*"
prime:
- "$exclusion"
kde-frameworks-5-env:
plugin: dump
source: https://invent.kde.org/packaging/snap-kf5-launcher.git
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment