mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-06 13:01:39 -07:00
Merge 9477e26858
into 20d11c1c33
This commit is contained in:
commit
ee1dd89cf9
1 changed files with 9 additions and 8 deletions
|
@ -23,7 +23,7 @@ description: |
|
||||||
# snap connect shellcheck:removable-media
|
# snap connect shellcheck:removable-media
|
||||||
|
|
||||||
version: git
|
version: git
|
||||||
base: core20
|
base: core24
|
||||||
grade: stable
|
grade: stable
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
|
||||||
|
@ -40,17 +40,18 @@ parts:
|
||||||
source: .
|
source: .
|
||||||
build-packages:
|
build-packages:
|
||||||
- cabal-install
|
- cabal-install
|
||||||
stage-packages:
|
|
||||||
- libatomic1
|
|
||||||
override-build: |
|
override-build: |
|
||||||
# Give ourselves enough memory to build
|
# Give ourselves enough memory to build
|
||||||
dd if=/dev/zero of=/tmp/swap bs=1M count=2000
|
fallocate -l 2G /tmp/swap
|
||||||
|
chmod 0600 /tmp/swap
|
||||||
mkswap /tmp/swap
|
mkswap /tmp/swap
|
||||||
swapon /tmp/swap
|
if ! swapon /tmp/swap; then
|
||||||
|
echo "Could not enable swap file, continuing anyway"
|
||||||
|
rm /tmp/swap
|
||||||
|
fi
|
||||||
|
|
||||||
cabal sandbox init
|
|
||||||
cabal update
|
cabal update
|
||||||
cabal install -j
|
cabal install -j
|
||||||
|
|
||||||
install -d $SNAPCRAFT_PART_INSTALL/usr/bin
|
install -d "${CRAFT_PART_INSTALL}/usr/bin"
|
||||||
install .cabal-sandbox/bin/shellcheck $SNAPCRAFT_PART_INSTALL/usr/bin
|
install --strip ~/.cabal/bin/shellcheck "${CRAFT_PART_INSTALL}/usr/bin"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue