snap: use version: git

Snapcraft can determine the version from git on its own.

Signed-off-by: Michał Sawicz (Saviq) <michal@sawicz.net>
This commit is contained in:
Michał Sawicz (Saviq) 2023-01-19 11:17:01 +01:00 committed by Dirk Hohndel
parent e335c7a20d
commit a21cddc69a

View file

@ -1,5 +1,5 @@
name: subsurface name: subsurface
adopt-info: subsurface version: git
icon: icons/subsurface-icon.svg icon: icons/subsurface-icon.svg
summary: Open source divelog program for recreational, tech, and free-divers summary: Open source divelog program for recreational, tech, and free-divers
description: | description: |
@ -151,9 +151,6 @@ parts:
- qtlocation5-dev - qtlocation5-dev
- qtpositioning5-dev - qtpositioning5-dev
- qttools5-dev - qttools5-dev
override-pull: |
snapcraftctl pull
snapcraftctl set-version $( git describe )
override-build: | override-build: |
mkdir -p ../install-root mkdir -p ../install-root
ln -sf ../../../stage/usr/lib/*/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so \ ln -sf ../../../stage/usr/lib/*/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so \