Skip to content

Commit

Permalink
[snap] fix yaml for latest version of snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishnarraj committed Feb 7, 2022
1 parent 889368d commit c41d228
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -12,11 +11,15 @@ confinement: classic

apps:
clpeak:
command: bin/clpeak
command: usr/local/bin/clpeak

parts:
clpeak:
source: .
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}'`"

0 comments on commit c41d228

Please sign in to comment.