source: tags/1.4.0/Install/snap/snapcraft.yaml

Last change on this file was 144, checked in by chronos, 3 years ago
  • Modified: Update install scripts.
File size: 5.0 KB
Line 
1name: vcard-studio
2title: vCard Studio
3version: '1.4.0'
4summary: A contact management application with support for vCard file format.
5description: |
6 A contact management application with support for vCard file format (.vcf).
7
8 **Features**:
9 * Add, Edit, Clone or Remove contacts and contact properties
10 * Shows contact fields in multiple tabs General, Home, Work, Social, Chat and Others
11 * Contact photo displayed and can be changed (supported image types JPEG, PNG, GIF and BMP)
12 * Quick filter by table columns in contacts list
13 * Combine multiple contact files together
14 * Split contacts to separate files
15 * Find any value in contacts
16 * Find duplicate contacts to merge
17 * Copy, Cut and Paste contacts from/to clipboard
18 * Multilingual interface (English, Czech, Swedish)
19 * Contact QR code
20 * View contact source with syntax highlighting
21confinement: strict
22base: core20
23grade: stable
24icon: "Images/vCard Studio.png"
25license: NLPL
26
27parts:
28 lazarus:
29 plugin: nil
30 source: .
31 source-type: local
32 build-packages:
33 - wget
34 - libgtk2.0-dev
35 override-build: |
36 wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.2/lazarus-project_2.2.2-0_amd64.deb
37 wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.2/fpc-laz_3.2.2-210709_amd64.deb
38 wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.2/fpc-src_3.2.2-210709_amd64.deb
39 apt install ./lazarus-project_2.2.2-0_amd64.deb ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb
40 prime: [-*]
41 vcard-studio:
42 plugin: nil
43 source: .
44 source-type: local
45 override-build: |
46 snapcraftctl build
47 lazbuild --build-mode=Release vCardStudio.lpi
48 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/bin
49 install -s -m 755 vCardStudio $SNAPCRAFT_PART_INSTALL/usr/bin/vCardStudio
50 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/vCardStudio/Languages
51 install -m 755 Languages/*.pot $SNAPCRAFT_PART_INSTALL/usr/share/vCardStudio/Languages
52 install -m 755 Languages/*.po $SNAPCRAFT_PART_INSTALL/usr/share/vCardStudio/Languages
53 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/vCardStudio/Images
54 install -m 755 Images/Profile.png $SNAPCRAFT_PART_INSTALL/usr/share/vCardStudio/Images
55 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
56 install -m 755 Install/snap/local/vCardStudio.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
57 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
58 install -m 755 Images/vCard\ Studio.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
59 after:
60 - lazarus
61 - desktop-gtk2
62 stage:
63 - etc
64 - usr
65 - usr/bin
66 - usr/share/vCardStudio
67 - usr/share/applications/vCardStudio.desktop
68 - usr/share/pixmaps
69 stage-packages:
70 - libatk1.0-0
71 - libcairo2
72 - libdatrie1
73 - libfontconfig1
74 - libfreetype6
75 - libfribidi0
76 - libgdk-pixbuf2.0-0
77 - libgraphite2-3
78 - libgtk2.0-0
79 - libharfbuzz0b
80 - libpango-1.0-0
81 - libpangocairo-1.0-0
82 - libpangoft2-1.0-0
83 - libpixman-1-0
84 - libpng16-16
85 - libthai0
86 - libx11-6
87 - libxau6
88 - libxcb-render0
89 - libxcb-shm0
90 - libxcb1
91 - libxcomposite1
92 - libxcursor1
93 - libxdamage1
94 - libxdmcp6
95 - libxext6
96 - libxfixes3
97 - libxi6
98 - libxinerama1
99 - libxrandr2
100 - libxrender1
101
102 desktop-gtk2:
103 source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
104 source-subdir: gtk
105 plugin: make
106 make-parameters: ["FLAVOR=gtk2"]
107 build-packages:
108 - build-essential
109 - libgtk2.0-dev
110 stage-packages:
111 - libxkbcommon0 # XKB_CONFIG_ROOT
112 - ttf-ubuntu-font-family
113 - dmz-cursor-theme
114 - light-themes
115 - adwaita-icon-theme
116 - gnome-themes-standard
117 - shared-mime-info
118 - libgtk2.0-0
119 - libgdk-pixbuf2.0-0
120 - libglib2.0-bin
121 - libgtk2.0-bin
122 - unity-gtk2-module
123 - locales-all
124 - libappindicator1
125 - xdg-user-dirs
126 - ibus-gtk
127 - libibus-1.0-5
128
129# Additional plugs to pick up the GTK theme and icons from the system
130plugs:
131 icon-themes:
132 interface: content
133 target: $SNAP/data-dir/icons
134 default-provider: gtk-common-themes
135 sound-themes:
136 interface: content
137 target: $SNAP/data-dir/sounds
138 default-provider: gtk-common-themes
139 gtk-2-engines:
140 interface: content
141 target: $SNAP/lib/gtk-2.0
142 default-provider: gtk2-common-themes:gtk-2-engines
143 gtk-2-themes:
144 interface: content
145 target: $SNAP/usr/share/themes
146 default-provider: gtk2-common-themes:gtk-2-themes
147
148environment:
149 XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
150 GTK_PATH: $SNAP/lib/gtk-2.0
151
152apps:
153 vcard-studio:
154 command: usr/bin/vCardStudio
155 command-chain:
156 - bin/desktop-launch
157 desktop: usr/share/applications/vCardStudio.desktop
158 plugs:
159 - desktop
160 - x11
161 - home
162
163layout:
164 /usr/share/vCardStudio:
165 bind: $SNAP/usr/share/vCardStudio
Note: See TracBrowser for help on using the repository browser.