1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-27 03:42:39 +00:00

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