Skip to content

Commit

Permalink
snapcraft: Set QT_LIBRARY_DATA and fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarlettGatelyMoore committed Jul 21, 2024
1 parent 0fce289 commit 2c0e49c
Showing 1 changed file with 76 additions and 76 deletions.
152 changes: 76 additions & 76 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,89 +9,89 @@ base: core22
adopt-info: ghostwriter
icon: $CRAFT_PROJECT_DIR/resources/icons/128-apps-ghostwriter.png
apps:
ghostwriter:
extensions:
- kde-neon-6
common-id: org.kde.ghostwriter.desktop
desktop: usr/share/applications/org.kde.ghostwriter.desktop
command: usr/bin/ghostwriter
plugs:
- home
- cups
- browser-support
environment:
DICPATH: "$SNAP/usr/share/hunspell"
ghostwriter:
extensions:
- kde-neon-6
common-id: org.kde.ghostwriter.desktop
desktop: usr/share/applications/org.kde.ghostwriter.desktop
command: usr/bin/ghostwriter
plugs:
- home
- cups
- browser-support
environment:
DICPATH: "$SNAP/usr/share/hunspell"
QT_LIBRARY_DATA: $SNAP/kf6/usr/share/qt6/resources
plugs:
hunspell-dictionaries:
content: hunspell-dictionaries
interface: content
target: "$SNAP/usr/share/hunspell"
default-provider: hunspell-dictionaries:hunspell-dictionaries
hunspell-dictionaries:
content: hunspell-dictionaries
interface: content
target: "$SNAP/usr/share/hunspell"
default-provider: hunspell-dictionaries:hunspell-dictionaries
slots:
session-dbus-interface:
interface: dbus
name: org.kde.ghostwriter
bus: session
session-dbus-interface:
interface: dbus
name: org.kde.ghostwriter
bus: session
package-repositories:
- type: apt
- type: apt
components:
- main
- main
suites:
- jammy
- jammy
key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
url: http://origin.archive.neon.kde.org/user
key-server: keyserver.ubuntu.com
parts:
ghostwriter:
parse-info:
- usr/share/metainfo/org.kde.ghostwriter.metainfo.xml
plugin: cmake
source: .
source-type: local
build-packages:
- libhunspell-dev
stage-packages:
- pandoc
- cmark
- libtext-multimarkdown-perl
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
- -DCMAKE_INSTALL_SYSCONFDIR=/etc
- -DCMAKE_INSTALL_LOCALSTATEDIR=/var
- -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
- -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_INSTALL_RUNSTATEDIR=/run
- -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
- --log-level=STATUS
- -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
prime:
- -usr/lib/*/cmake/*
- -usr/include/*
- -usr/share/ECM/*
- -usr/share/man/*
- -usr/bin/X11
- -usr/lib/gcc/$CRAFT_ARCH_TRIPLET_BUILD_FOR/6.0.0
- -usr/lib/aspell/*
- -usr/share/lintian
cleanup:
after:
- ghostwriter
plugin: nil
build-snaps:
- core22
- kf6-core22
- qt-common-themes
override-prime: |
set -eux
for snap in "core22" "kf6-core22" "qt-common-themes"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;
done
ghostwriter:
parse-info:
- usr/share/metainfo/org.kde.ghostwriter.metainfo.xml
plugin: cmake
source: .
source-type: local
build-packages:
- libhunspell-dev
stage-packages:
- pandoc
- cmark
- libtext-multimarkdown-perl
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DQT_MAJOR_VERSION=6
- -DBUILD_WITH_QT6=ON
- -DBUILD_TESTING=OFF
- -DCMAKE_INSTALL_SYSCONFDIR=/etc
- -DCMAKE_INSTALL_LOCALSTATEDIR=/var
- -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
- -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
- -DCMAKE_INSTALL_RUNSTATEDIR=/run
- -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
- --log-level=STATUS
- -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
prime:
- -usr/lib/*/cmake/*
- -usr/include/*
- -usr/share/ECM/*
- -usr/share/man/*
- -usr/bin/X11
- -usr/lib/gcc/$CRAFT_ARCH_TRIPLET_BUILD_FOR/6.0.0
- -usr/lib/aspell/*
- -usr/share/lintian
cleanup:
after:
- ghostwriter
plugin: nil
build-snaps:
- core22
- kf6-core22
- qt-common-themes
override-prime: |
set -eux
for snap in "core22" "kf6-core22" "qt-common-themes"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;
done

0 comments on commit 2c0e49c

Please sign in to comment.