forked from ubports/telegram-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
99 lines (92 loc) · 2.69 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: telegram-app
version: 2.4.39.5
summary: Ubuntu Telegram Applicaiton
description: The Ubuntu Telegram for all Ubuntu devices
grade: devel
confinement: devmode
apps:
telegram-app:
command: desktop-launch $SNAP/bin/telegram-app.wrapper --desktop_file_hint=unity8 "$@"
plugs: [unity7, opengl, network, home, platform, camera, pulseaudio]
plugs:
platform:
interface: content
content: ubuntu-app-platform1
target: ubuntu-app-platform
default-provider: ubuntu-app-platform
parts:
libqtelegram-ae:
source: https://github.com/Aseman-Land/libqtelegram-aseman-edition.git
source-type: git
source-commit: 7bc3c3d54c744d675aa261bd4a0d335291052ee6
plugin: qmake
qt-version: qt5
options:
- PREFIX=/usr
- -r
# FIXME: workaround for skip gcc 6 build issue with stdlib.h
- QMAKE_CFLAGS_ISYSTEM=
build-packages:
- build-essential
- libssl-dev
- qtbase5-dev
- qtmultimedia5-dev
telegramqml:
source: https://github.com/Aseman-Land/TelegramQML.git
source-type: git
source-commit: 7d5110a454af7d9be2370da6de217941bb9d1f1b
plugin: qmake
qt-version: qt5
options:
- INCLUDEPATH+=$SNAPCRAFT_STAGE/usr/include/libqtelegram-ae
- INCLUDEPATH+=/usr/include/thumbnailer-qt-1.0/unity/thumbnailer/qt
- PREFIX=/usr
- -r
- BUILD_MODE+=lib
- DEFINES+=UBUNTU_PHONE
# FIXME: workaround for skip gcc 6 build issue with stdlib.h
- QMAKE_CFLAGS_ISYSTEM=
build-packages:
- build-essential
- intltool
- qtbase5-dev
- qtdeclarative5-dev
- libthumbnailer-qt-dev
after: [libqtelegram-ae]
telegram-app:
source: telegram
source-subdir: app
plugin: qmake
qt-version: qt5
options:
- INCLUDEPATH+=$SNAPCRAFT_STAGE/usr/include/libqtelegram-ae
- INCLUDEPATH+=$SNAPCRAFT_STAGE/usr/include/telegramqml
- PREFIX=/usr
- DEFINES+=SNAP_MODE
- -r
snap:
# bin
- lib/x86_64-linux-gnu/bin/telegram
#external library
- usr/lib/*/libqtelegram-ae.so.*
- usr/lib/*/libtelegramqml.so.*
#Connectivity
- usr/lib/*/qt5/qml/Ubuntu/Connectivity/libconnectivity-qml.so
- usr/lib/*/qt5/qml/Ubuntu/Connectivity/qmldir
#Contacts
- usr/lib/*/qt5/qml/Ubuntu/Contacts.0.1/
- usr/share/doc/qtdeclarative5-ubuntu-contacts0.1/copyright
- -database
- -emojis
- -icons
- -scope
- -stickers
stage-packages:
- qml-module-ubuntu-connectivity
- qtdeclarative5-ubuntu-contacts0.1
after: [telegramqml, desktop-ubuntu-app-platform]
wrapper:
source: snap/
plugin: dump
organize:
telegram-app.wrapper: bin/telegram-app.wrapper