From c41d228f24ec866cec6f6ee1f111321378d7bb4a Mon Sep 17 00:00:00 2001 From: Krishnaraj Bhat Date: Mon, 7 Feb 2022 18:00:27 +0530 Subject: [PATCH] [snap] fix yaml for latest version of snapcraft --- snap/snapcraft.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 3f9bf26..2d9cf75 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,7 +1,6 @@ name: clpeak base: core20 -version: "1.0" -version-script: "echo `grep 'VERSION_MAJOR ' cmake/common.cmake | awk -F'[() ]' '{print $3}'`.`grep 'VERSION_MINOR ' cmake/common.cmake | awk -F'[() ]' '{print $3}'`.`grep 'VERSION_PATCH ' cmake/common.cmake | awk -F'[() ]' '{print $3}'`" +adopt-info: clpeak summary: Benchmarking tool to measure peak capabilities of opencl devices description: | A synthetic benchmarking tool to measure peak capabilities of opencl devices. @@ -12,7 +11,7 @@ confinement: classic apps: clpeak: - command: bin/clpeak + command: usr/local/bin/clpeak parts: clpeak: @@ -20,3 +19,7 @@ parts: plugin: cmake build-packages: - build-essential + - git + override-pull: | + snapcraftctl pull + snapcraftctl set-version "`grep 'VERSION_MAJOR ' cmake/common.cmake | awk -F'[() ]' '{print $3}'`.`grep 'VERSION_MINOR ' cmake/common.cmake | awk -F'[() ]' '{print $3}'`.`grep 'VERSION_PATCH ' cmake/common.cmake | awk -F'[() ]' '{print $3}'`"