From ccc4bff9a081e6e9689af6b5bb8d9cf962bfd76f Mon Sep 17 00:00:00 2001 From: Alan Pope Date: Tue, 31 Jan 2017 14:21:47 +0000 Subject: [PATCH] Add snapcraft config to enable building snaps --- snapcraft.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 snapcraft.yaml diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 0000000..f44d1cc --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,31 @@ +name: shellcheck +version: '0.4.5+git' +summary: ShellCheck, a static analysis tool for shell script +description: | + ShellCheck is a GPLv3 tool that gives warnings and suggestions for bash/sh + shell scripts + +grade: stable +confinement: classic + +apps: + shellcheck: + command: shellcheck + +parts: + shellcheck: + source: . + plugin: make + build-packages: + - cabal-install + - ghc + - libghc-json-dev + - libghc-mtl-dev + - libghc-parsec3-dev + - libghc-regex-tdfa-dev + - libghc-quickcheck2-dev + build: | + cabal update + install: | + cabal install + cp dist/build/shellcheck/shellcheck $SNAPCRAFT_PART_INSTALL