diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-01-31 14:21:40 +0300 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-01-31 14:21:40 +0300 |
commit | f5c9cec1db625d5c275b6f6e741818c5a9544b2f (patch) | |
tree | 9a6cd217466d7e79d74c8c1ea874af109b8117ad /snap | |
parent | 1b3aeb83c0190d7ea94e8e8f73438d2f9b6b122f (diff) |
snap: set SNAP_NAME inside CMake file
Diffstat (limited to 'snap')
-rw-r--r-- | snap/CMakeLists.txt | 1 | ||||
-rw-r--r-- | snap/snapcraft.yaml.in | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/snap/CMakeLists.txt b/snap/CMakeLists.txt index b95c58d0c..668bc5442 100644 --- a/snap/CMakeLists.txt +++ b/snap/CMakeLists.txt @@ -30,6 +30,7 @@ # version. If you delete this exception statement from all source # files in the program, then also delete it here. +set(SNAP_NAME "remmina") set(SNAP_VERSION ${REMMINA_VERSION}) if (NOT ${GIT_REVISION} STREQUAL ${REMMINA_VERSION_SUFFIX} AND NOT ${GIT_REVISION} MATCHES "^rcgit-[0-9]*") diff --git a/snap/snapcraft.yaml.in b/snap/snapcraft.yaml.in index 36330c227..7dcdb9202 100644 --- a/snap/snapcraft.yaml.in +++ b/snap/snapcraft.yaml.in @@ -1,4 +1,4 @@ -name: remmina +name: ${SNAP_NAME} version: ${SNAP_VERSION} summary: The GTK+ Remote Desktop Client # Enable this when https://github.com/snapcore/snapcraft/pull/1092 is merged @@ -60,7 +60,7 @@ parts: # 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: . + snap/${SNAP_NAME}/current: . prime: - -usr/include @@ -92,7 +92,7 @@ parts: # 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: . + snap/${SNAP_NAME}/current: . after: - freerdp |