build(snap): Fix snap package not buildable in v1.11.0 (#4578)

* fix(snap): Fix missing CMake build dependency

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>

* fix(snap): Use core20 for compatible versions of CMake

Fixes #4574.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>

* build(snap): Drop unused build packages

Refer-to: David Knaack comment at Snap not buildable in v1.11.0 · Issue starship#4574 · starship/starship <starship#4574 (comment)>
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
This commit is contained in:
林博仁(Buo-ren, Lin) 2022-11-14 01:30:25 +08:00 committed by GitHub
parent f65861946d
commit 7ce09621b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
name: starship
base: core18
base: core20
adopt-info: starship
summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
description: |
@ -57,7 +57,7 @@ parts:
source: https://github.com/starship/starship.git
#source-tag: v$SNAPCRAFT_PROJECT_VERSION
build-packages:
- libssl-dev
- cmake
- pkg-config
override-build: |
last_committed_tag="$(git describe --tags --abbrev=0)"