Merge pull request #1549 from Lin-Buo-Ren/patch/snap/improve-packaging

Improve snap packaging
This commit is contained in:
Vidar Holen 2019-05-08 17:35:05 -07:00 committed by GitHub
commit 248858c13e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -23,7 +23,8 @@ description: |
# snap connect shellcheck:removable-media
version: git
grade: devel
base: core18
grade: stable
confinement: strict
apps:
@ -34,11 +35,11 @@ apps:
parts:
shellcheck:
plugin: dump
source: ./
source: .
build-packages:
- cabal-install
- squid3
build: |
- squid
override-build: |
# See comments in .snapsquid.conf
[ "$http_proxy" ] && {
squid3 -f .snapsquid.conf
@ -48,6 +49,6 @@ parts:
cabal sandbox init
cabal update || cat /var/log/squid/*
cabal install -j
install: |
install -d $SNAPCRAFT_PART_INSTALL/usr/bin
install .cabal-sandbox/bin/shellcheck $SNAPCRAFT_PART_INSTALL/usr/bin