source: trunk/Install/snap/snapcraft.yaml

Last change on this file was 217, checked in by chronos, 3 years ago
  • Modified: Updated snapcraft file.
File size: 4.9 KB
Line 
1name: acronym-decoder
2title: Acronym Decoder
3version: '1.7.0'
4summary: A simple tool for quick searching of acronyms and abbreviations meaning.
5description: |
6 A tool for quick searching of acronym or abbreviation meanings.
7
8 **Features:**
9 * Acronym database management
10 * Quick searching by acronym name, meaning or category. Exact or partial match.
11 * Acronym categories
12 * Database stored as project file in open XML format
13 * Configurable import from external web pages (http, https) with custom text parsing rules
14 * Support for import from MS Access database file
15 * Localized interface (English, Czech)
16 * Allows minimization to system tray
17 * Document check for acronyms occurrence, definitions and summary section
18confinement: strict
19base: core20
20grade: stable
21icon: "Images/AcronymDecoder.png"
22license: NLPL
23
24parts:
25 acronym-decoder:
26 plugin: nil
27 source: .
28 source-type: local
29 build-packages:
30 - fpc
31 - lazarus
32 - lcl
33 - lcl-utils
34 override-build: |
35 snapcraftctl build
36 lazbuild --build-mode=Release AcronymDecoder.lpi
37 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/bin
38 install -s -m 755 AcronymDecoder $SNAPCRAFT_PART_INSTALL/usr/bin/AcronymDecoder
39 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
40 install -m 644 Languages/AcronymDecoder.pot $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
41 install -m 644 Languages/AcronymDecoder.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
42 install -m 644 Packages/Common/Languages/UJobProgressView.pot $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
43 install -m 644 Packages/Common/Languages/UJobProgressView.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
44 install -m 644 Packages/Common/Languages/UFormAbout.pot $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
45 install -m 644 Packages/Common/Languages/UFormAbout.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
46 install -d -m 755 $(ROOT)/usr/share/mime/packages
47 install -m 644 Install/shared/acronym-decoder.xml $(ROOT)/usr/share/mime/packages
48 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
49 install -m 755 Install/shared/AcronymDecoder.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
50 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
51 install -m 644 Images/AcronymDecoder.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
52 install -m 644 Images/AcronymDecoder.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-adp.png
53 cp -r Examples $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder
54 after:
55 - desktop-gtk2
56 stage:
57 - etc
58 - usr
59 - usr/bin
60 - usr/share/AcronymDecoder
61 - usr/share/applications/AcronymDecoder.desktop
62 - usr/share/pixmaps
63 stage-packages:
64 - libatk1.0-0
65 - libcairo2
66 - libdatrie1
67 - libfontconfig1
68 - libfreetype6
69 - libfribidi0
70 - libgdk-pixbuf2.0-0
71 - libgraphite2-3
72 - libgtk2.0-0
73 - libharfbuzz0b
74 - libpango-1.0-0
75 - libpangocairo-1.0-0
76 - libpangoft2-1.0-0
77 - libpixman-1-0
78 - libpng16-16
79 - libthai0
80 - libx11-6
81 - libxau6
82 - libxcb-render0
83 - libxcb-shm0
84 - libxcb1
85 - libxcomposite1
86 - libxcursor1
87 - libxdamage1
88 - libxdmcp6
89 - libxext6
90 - libxfixes3
91 - libxi6
92 - libxinerama1
93 - libxrandr2
94 - libxrender1
95
96 desktop-gtk2:
97 source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
98 source-subdir: gtk
99 plugin: make
100 make-parameters: ["FLAVOR=gtk2"]
101 build-packages:
102 - build-essential
103 - libgtk2.0-dev
104 stage-packages:
105 - libxkbcommon0 # XKB_CONFIG_ROOT
106 - ttf-ubuntu-font-family
107 - dmz-cursor-theme
108 - light-themes
109 - adwaita-icon-theme
110 - gnome-themes-standard
111 - shared-mime-info
112 - libgtk2.0-0
113 - libgdk-pixbuf2.0-0
114 - libglib2.0-bin
115 - libgtk2.0-bin
116 - unity-gtk2-module
117 - locales-all
118 - libappindicator1
119 - xdg-user-dirs
120 - ibus-gtk
121 - libibus-1.0-5
122
123# Additional plugs to pick up the GTK theme and icons from the system
124plugs:
125 icon-themes:
126 interface: content
127 target: $SNAP/data-dir/icons
128 default-provider: gtk-common-themes
129 sound-themes:
130 interface: content
131 target: $SNAP/data-dir/sounds
132 default-provider: gtk-common-themes
133 gtk-2-engines:
134 interface: content
135 target: $SNAP/lib/gtk-2.0
136 default-provider: gtk2-common-themes:gtk-2-engines
137 gtk-2-themes:
138 interface: content
139 target: $SNAP/usr/share/themes
140 default-provider: gtk2-common-themes:gtk-2-themes
141
142environment:
143 XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
144 GTK_PATH: $SNAP/lib/gtk-2.0
145
146apps:
147 acronym-decoder:
148 command: usr/bin/AcronymDecoder
149 command-chain:
150 - bin/desktop-launch
151 desktop: usr/share/applications/AcronymDecoder.desktop
152 plugs:
153 - desktop
154 - x11
155 - home
156
157layout:
158 /usr/share/AcronymDecoder:
159 bind: $SNAP/usr/share/AcronymDecoder
Note: See TracBrowser for help on using the repository browser.