source: trunk/Install/snap/snapcraft.yaml

Last change on this file was 141, checked in by chronos, 2 years ago
  • Fixed: Renamed original .po files to .pot extension.
  • Fixed: snap and deb packages.
  • Fixed: Reduced meaningful build warnings.
File size: 4.2 KB
Line 
1name: lazfuck
2title: LazFuck
3version: 1.3.0
4summary: A simple BrainFuck IDE written in Lazarus/FPC.
5description: |
6 LazFuck is GUI application for writing, executing, compiling and debugging programs written in famous BrainFuck esoteric programming language.
7
8 Features:
9 * Graphical code editor with color syntax highlighting
10 * Optimizing compiler and interpreter
11 * Cross-compilation to Delphi, Free Pascal, Python, Java, C, C#, PHP, and Javascript
12 * Interpreter with debugger
13confinement: strict
14base: core20
15grade: stable
16icon: "Images/64x64/LazFuck.png"
17license: NLPL
18
19parts:
20 lazfuck:
21 plugin: nil
22 source: .
23 source-type: local
24 build-packages:
25 - fpc
26 - lazarus
27 - lcl
28 - lcl-utils
29 override-build: |
30 snapcraftctl build
31 lazbuild --build-mode=Release LazFuck.lpi
32 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/bin
33 install -s -m 755 LazFuck $SNAPCRAFT_PART_INSTALL/usr/bin/LazFuck
34 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck/Languages
35 install -m 644 Languages/LazFuck.pot $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck/Languages
36 install -m 644 Languages/LazFuck.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck/Languages
37 install -m 644 Languages/UFormAbout.pot $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck/Languages
38 install -m 644 Languages/UFormAbout.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck/Languages
39 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
40 install -m 755 Install/snap/local/LazFuck.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
41 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
42 install -m 644 Images/64x64/LazFuck.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
43 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
44 install -m 644 Install/snap/local/LazFuck.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
45 cp -r Examples $SNAPCRAFT_PART_INSTALL/usr/share/LazFuck
46 after:
47 - desktop-gtk2
48 stage:
49 - etc
50 - usr
51 - usr/bin
52 - usr/share/LazFuck
53 - usr/share/applications/LazFuck.desktop
54 - usr/share/pixmaps
55 - usr/share/mime
56 stage-packages:
57 - libatk1.0-0
58 - libcairo2
59 - libdatrie1
60 - libfontconfig1
61 - libfreetype6
62 - libfribidi0
63 - libgdk-pixbuf2.0-0
64 - libgraphite2-3
65 - libgtk2.0-0
66 - libharfbuzz0b
67 - libpango-1.0-0
68 - libpangocairo-1.0-0
69 - libpangoft2-1.0-0
70 - libpixman-1-0
71 - libpng16-16
72 - libthai0
73 - libx11-6
74 - libxau6
75 - libxcb-render0
76 - libxcb-shm0
77 - libxcb1
78 - libxcomposite1
79 - libxcursor1
80 - libxdamage1
81 - libxdmcp6
82 - libxext6
83 - libxfixes3
84 - libxi6
85 - libxinerama1
86 - libxrandr2
87 - libxrender1
88
89 desktop-gtk2:
90 source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
91 source-subdir: gtk
92 plugin: make
93 make-parameters: ["FLAVOR=gtk2"]
94 build-packages:
95 - build-essential
96 - libgtk2.0-dev
97 stage-packages:
98 - libxkbcommon0 # XKB_CONFIG_ROOT
99 - ttf-ubuntu-font-family
100 - dmz-cursor-theme
101 - light-themes
102 - adwaita-icon-theme
103 - gnome-themes-standard
104 - shared-mime-info
105 - libgtk2.0-0
106 - libgdk-pixbuf2.0-0
107 - libglib2.0-bin
108 - libgtk2.0-bin
109 - unity-gtk2-module
110 - locales-all
111 - libappindicator1
112 - xdg-user-dirs
113 - ibus-gtk
114 - libibus-1.0-5
115
116# Additional plugs to pick up the GTK theme and icons from the system
117plugs:
118 icon-themes:
119 interface: content
120 target: $SNAP/data-dir/icons
121 default-provider: gtk-common-themes
122 sound-themes:
123 interface: content
124 target: $SNAP/data-dir/sounds
125 default-provider: gtk-common-themes
126 gtk-2-engines:
127 interface: content
128 target: $SNAP/lib/gtk-2.0
129 default-provider: gtk2-common-themes:gtk-2-engines
130 gtk-2-themes:
131 interface: content
132 target: $SNAP/usr/share/themes
133 default-provider: gtk2-common-themes:gtk-2-themes
134
135environment:
136 XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
137 GTK_PATH: $SNAP/lib/gtk-2.0
138
139apps:
140 lazfuck:
141 command: usr/bin/LazFuck
142 command-chain:
143 - bin/desktop-launch
144 desktop: usr/share/applications/LazFuck.desktop
145 plugs:
146 - desktop
147 - x11
148 - home
149
150layout:
151 /usr/share/LazFuck:
152 bind: $SNAP/usr/share/LazFuck
Note: See TracBrowser for help on using the repository browser.