Merge pull request #1093 from albertodonato/snap-package

Add snapcraft.yaml to build snap package
This commit is contained in:
koalaman 2018-01-13 19:36:06 -08:00 committed by GitHub
commit ee997fdec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 37 additions and 0 deletions

37
snap/snapcraft.yaml Normal file
View File

@ -0,0 +1,37 @@
name: shellcheck
summary: A shell script static analysis tool
description: |
ShellCheck is a GPLv3 tool that gives warnings and suggestions for bash/sh
shell scripts.
The goals of ShellCheck are
- To point out and clarify typical beginner's syntax issues that cause a
shell to give cryptic error messages.
- To point out and clarify typical intermediate level semantic problems that
cause a shell to behave strangely and counter-intuitively.
- To point out subtle caveats, corner cases and pitfalls that may cause an
advanced user's otherwise working script to fail under future
circumstances.
version: git
grade: stable
confinement: classic
apps:
shellcheck:
command: usr/bin/shellcheck
parts:
shellcheck:
plugin: dump
source: ./
build-packages:
- cabal-install
build: |
cabal sandbox init
cabal install -j
install: |
install -d $SNAPCRAFT_PART_INSTALL/usr/bin
install .cabal-sandbox/bin/shellcheck $SNAPCRAFT_PART_INSTALL/usr/bin