diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-01-30 17:32:32 +0300 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-01-30 20:05:27 +0300 |
commit | 11c45e6d491ab688f1b297321b2d71644dcaa660 (patch) | |
tree | 94be9c3c348d23a0145fcf0dadca5495d9e4db8f /snap | |
parent | 8d11cd0e4eb30d4b4c72a8fae374986dbf88b81b (diff) |
snap: move snapcraft generation to subfolder
Diffstat (limited to 'snap')
-rw-r--r-- | snap/CMakeLists.txt | 64 | ||||
-rw-r--r-- | snap/snapcraft.yaml.in | 122 |
2 files changed, 186 insertions, 0 deletions
diff --git a/snap/CMakeLists.txt b/snap/CMakeLists.txt new file mode 100644 index 000000000..5d8cfc24a --- /dev/null +++ b/snap/CMakeLists.txt @@ -0,0 +1,64 @@ +# Remmina - The GTK+ Remote Desktop Client +# +# Copyright (C) 2017 Marco Trevisan +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# In addition, as a special exception, the copyright holders give +# permission to link the code of portions of this program with the +# OpenSSL library under certain conditions as described in each +# individual source file, and distribute linked combinations +# including the two. +# You must obey the GNU General Public License in all respects +# for all of the code used other than OpenSSL. If you modify +# file(s) with this exception, you may extend this exception to your +# version of the file(s), but you are not obligated to do so. If you +# do not wish to do so, delete this exception statement from your +# version. If you delete this exception statement from all source +# files in the program, then also delete it here. + +set(SNAP_VERSION ${REMMINA_VERSION}) +if (NOT ${GIT_REVISION} STREQUAL ${REMMINA_VERSION_SUFFIX} AND + NOT ${GIT_REVISION} MATCHES "^rcgit-[0-9]*") + set(SNAP_VERSION ${SNAP_VERSION}+git${GIT_REVISION}) +endif() + +set(SNAP_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}) +set(SNAP_SETUP_DIR ${SNAP_BUILD_DIR}/setup) +set(SNAP_GUI_DIR ${SNAP_SETUP_DIR}/gui) + +file(MAKE_DIRECTORY ${SNAP_GUI_DIR}) +file(RELATIVE_PATH CMAKE_SOURCE_DIR_RELATIVE ${SNAP_BUILD_DIR} ${CMAKE_SOURCE_DIR}) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/snapcraft.yaml.in + ${SNAP_BUILD_DIR}/snapcraft.yaml) + +set(REMMINA_BINARY_PATH "remmina") +set(REMMINA_ICON "\${SNAP}/meta/gui/icon.svg") +configure_file(${CMAKE_SOURCE_DIR}/remmina/desktop/remmina.desktop.in + ${SNAP_GUI_DIR}/remmina.desktop @ONLY) + +configure_file(${CMAKE_SOURCE_DIR}/LICENSE + ${SNAP_SETUP_DIR}/license.txt COPYONLY) + + +add_custom_target("snap" + COMMAND ${SNAPCRAFT} + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/snapcraft.yaml" + COMMENT "Create snap package ${SNAP_VERSION}" + VERBATIM +) diff --git a/snap/snapcraft.yaml.in b/snap/snapcraft.yaml.in new file mode 100644 index 000000000..2388cd31a --- /dev/null +++ b/snap/snapcraft.yaml.in @@ -0,0 +1,122 @@ +name: remmina +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-commit: refs/heads/master + source-depth: 1 + build-packages: + - build-essential + - libasound2-dev + - libcups2-dev + - libjpeg-dev + - libpcsclite-dev + - libpulse-dev + - libssl-dev + - libx11-dev + - libxcursor-dev + - libxdamage-dev + - libxext-dev + - libxi-dev + - libxinerama-dev + - libxkbfile-dev + - libxrandr-dev + - libxv-dev + configflags: + - -DWITH_WAYLAND=off + - -DWITH_CLIENT=off + - -DWITH_SERVER=off + - -DWITH_PULSE=on + - -DWITH_GSTREAMER=off + - -DWITH_GSTREAMER_1_0=off + - -DWITH_GSTREAMER_0_10=off + - -DWITH_FFMPEG=off + - -DWITH_CHANNELS=on + - -DSTATIC_CHANNELS=off + - -DWITH_CUPS=on + - -DWITH_PCSC=on + - -DWITH_JPEG=on + + # XXX: This is an hack to have a kind of bind-mount with absolute prefix. + - -DCMAKE_INSTALL_PREFIX=/snap/$SNAPCRAFT_PROJECT_NAME/current/usr + organize: + snap/remmina/current: . + + prime: + - -usr/include + - -usr/lib/cmake + - -usr/lib/pkgconfig + + 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 + - libgnutls28-dev + - libgtk-3-dev + - libjpeg-dev + - libssh-dev + - libtelepathy-glib-dev + - libvncserver-dev + - libvte-2.91-dev + - libxkbfile-dev + configflags: + - -DCMAKE_PREFIX_PATH=$SNAPCRAFT_STAGE/usr + - -DWITH_SURVEY=off + + # XXX: This is an hack to have a kind of bind-mount with absolute prefix. + - -DCMAKE_INSTALL_PREFIX=/snap/$SNAPCRAFT_PROJECT_NAME/current/usr + organize: + snap/remmina/current: . + + after: + - freerdp + - desktop-gtk3 + - indicator-gtk3 + +apps: + remmina: + command: desktop-launch remmina + plugs: + - avahi-observe + - cups-control + - gsettings + - home + - mount-observe + - network + - network-bind + - pulseaudio + - unity7 + + winpr-makecert: + command: winpr-makecert + + winpr-hash: + command: winpr-hash + +slots: + remmina-gapp: + interface: dbus + bus: session + name: ${UNIQUE_APPNAME} |