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}'`"