Welcome to mirror list, hosted at ThFree Co, Russian Federation.

snapcraft.yaml.in « snap - gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c1a53f738f0a1fd39c3f95fd4f26e3d2a3459c1 (plain)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: @SNAP_NAME@
version: @SNAP_VERSION@
summary: The GTK+ Remote Desktop Client
icon: @CMAKE_SOURCE_DIR_RELATIVE@/remmina/desktop/scalable/apps/remmina.svg
description: |
  Remmina is a remote desktop client written in GTK+, aiming to be useful for
  system administrators and travellers, who need to work with lots of remote
  computers in front of either large monitors or tiny netbooks. Remmina supports
  multiple network protocols in an integrated and consistant user interface.
  Currently RDP, VNC, SPICE, NX, XDMCP and SSH are supported.

  Remmina is free and open-source software, released under GNU GPL license.

grade: stable
confinement: strict

parts:
  freerdp:
    plugin: cmake
    source: https://github.com/FreeRDP/FreeRDP.git
    source-depth: 1
    build-packages:
      - build-essential
      - libasound2-dev
      - libavcodec-dev
      - libavutil-dev
      - libcups2-dev
      - libgnutls-dev
      - libgnutls28-dev
      - libjpeg-dev
      - libpcsclite-dev
      - libpulse-dev
      - libsecret-1-dev
      - libssl-dev
      - libx11-dev
      - libxcursor-dev
      - libxdamage-dev
      - libxext-dev
      - libxi-dev
      - libxinerama-dev
      - libxkbfile-dev
      - libxml2-dev
      - libxrandr-dev
      - libxtst-dev
      - libxv-dev
    configflags:
      - -DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@
      - -DCMAKE_INSTALL_PREFIX=/usr
      - -DWITH_WAYLAND=off
      - -DWITH_CLIENT=off
      - -DWITH_SERVER=off
      - -DWITH_PULSE=on
      - -DWITH_GSTREAMER=off
      - -DWITH_FFMPEG=on
      - -DWITH_CHANNELS=on
      - -DSTATIC_CHANNELS=off
      - -DWITH_CUPS=on
      - -DWITH_PCSC=on
      - -DWITH_JPEG=on

    prime:
      - -usr/include
      - -usr/lib/cmake
      - -usr/lib/pkgconfig

  # Remove this (and use again libssh-dev) once libssh-0.7 is available in distro
  libssh-0.7:
    plugin: cmake
    source: git://git.libssh.org/projects/libssh.git
    source-depth: 1
    source-branch: v0-7
    configflags:
      - -DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@
      - -DCMAKE_INSTALL_PREFIX=/usr
      - -DWITH_STATIC_LIB=ON
      - -DWITH_GSSAPI=ON
      - -DWITH_NACL=0

    prime:
      - ./**/libssh*.so.*

  remmina:
    plugin: cmake
    source: @CMAKE_SOURCE_DIR_RELATIVE@
    stage-packages:
      - xauth
    build-packages:
      - intltool
      - libappindicator3-dev
      - libavahi-ui-gtk3-dev
      - libgcrypt20-dev
      - libgnome-keyring-dev
      - libgtk-3-dev
      - libspice-client-gtk-3.0-dev
      - libspice-protocol-dev
      - libtelepathy-glib-dev
      - libvncserver-dev
      - libvte-2.91-dev
      - libxkbfile-dev
    configflags:
      - -DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@
      - -DCMAKE_INSTALL_PREFIX=/usr
      - -DCMAKE_PREFIX_PATH=$SNAPCRAFT_STAGE/usr

    after:
      - libssh-0.7
      - freerdp
      - desktop-gtk3
      - indicator-gtk3
      - snapcraft-preload

  snapcraft-preload:
    source: https://github.com/3v1n0/snapcraft-preload.git
    source-branch: getpwd-support
    plugin: cmake
    build-packages:
      - gcc-multilib
      - g++-multilib

  desktop-integration:
    plugin: nil
    install: |
      set -x
      SNAPCRAFT_PRIME=$SNAPCRAFT_STAGE/../prime
      export XDG_DATA_DIRS=$SNAPCRAFT_PRIME/usr/share:$XDG_DATA_DIRS
      $SNAPCRAFT_STAGE/usr/bin/update-mime-database $SNAPCRAFT_PRIME/usr/share/mime
      $SNAPCRAFT_STAGE/usr/bin/gio-querymodules $SNAPCRAFT_PRIME/usr/lib/*/gio/modules
      $SNAPCRAFT_STAGE/usr/bin/glib-compile-schemas $SNAPCRAFT_PRIME/usr/share/glib-2.0/schemas

      loaders_dir=$(ls -d $SNAPCRAFT_PRIME/usr/lib/*/gdk-pixbuf-2.0/[0-9]*)
      export GDK_PIXBUF_MODULEDIR=$loaders_dir/loaders
      $SNAPCRAFT_STAGE/usr/lib/*/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders > $loaders_dir/loaders.cache
      sed -i s,$SNAPCRAFT_PRIME,,g $loaders_dir/loaders.cache

      for theme_dir in $SNAPCRAFT_PRIME/usr/share/icons/*; do
        if [ -f $SNAPCRAFT_STAGE/usr/sbin/update-icon-caches ]; then
          $SNAPCRAFT_STAGE/usr/sbin/update-icon-caches "$theme_dir"
        fi
        if [ -f $SNAPCRAFT_STAGE/usr/sbin/update-icon-cache.gtk2 ]; then
          $SNAPCRAFT_STAGE/usr/sbin/update-icon-cache.gtk2 "$theme_dir"
        fi
      done
    after:
      - remmina

apps:
  remmina:
    command: snapcraft-preload remmina
    plugs:
      - avahi-observe
      - cups-control
      - gsettings
      - home
      - mount-observe
      - network
      - network-bind
      - pulseaudio
      - unity7

  winpr-makecert:
    command: snapcraft-preload winpr-makecert

  winpr-hash:
    command: snapcraft-preload winpr-hash

slots:
  remmina-gapp:
    interface: dbus
    bus: session
    name: @UNIQUE_APPNAME@