This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsnapcraft.yaml
53 lines (48 loc) · 1.79 KB
/
snapcraft.yaml
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
name: gnome-dictionary
adopt-info: gnome-dictionary
summary: Check word definitions and spellings in an online dictionary
description: |
GNOME Dictionary is a simple dictionary application that looks up
definitions of words online.
Though it looks up English definitions by default, you can easily switch to
Spanish or add other online dictionaries using the DICT protocol to suit your
needs.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core24
slots:
# for GtkApplication registration
gnome-dictionary:
interface: dbus
bus: session
name: org.gnome.Dictionary
apps:
gnome-dictionary:
command: usr/bin/gnome-dictionary
extensions: [gnome]
plugs:
- network
desktop: usr/share/applications/org.gnome.Dictionary.desktop
parts:
gnome-dictionary:
# ext:updatesnap
source: https://gitlab.gnome.org/Archive/gnome-dictionary.git
source-type: git
source-tag: '40.0'
source-depth: 1
plugin: meson
parse-info: [usr/share/metainfo/org.gnome.Dictionary.appdata.xml]
meson-parameters:
- --prefix=/usr
- --buildtype=release
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=10)
# Remove the meson.build line for erroring on redundant-declarations
sed -i.bak -e '/.*-Werror=redundant-decls.*$/d' src/meson.build
patch -p1 < $CRAFT_PROJECT_DIR/patches/01-adapt-to-newer-meson-syntax.diff
override-build: |
sed -i.bak -e 's|Icon=@application_id@$|Icon=${SNAP}/meta/gui/org.gnome.Dictionary.svg|g' $CRAFT_PART_SRC/data/org.gnome.Dictionary.desktop.in.in
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp $CRAFT_PART_SRC/data/icons/scalable/org.gnome.Dictionary.svg $CRAFT_PART_INSTALL/meta/gui/
craftctl default