Fix snap builds and rename package
@@ -15,26 +15,27 @@ parts:
build-packages:
- libssl-dev
- pkg-config
+ - libxcb1-dev
+ - libxcb-render0-dev
+ - libxcb-shape0-dev
+ - libxcb-xfixes0-dev
+ stage-packages:
+ - libxau6
+ - libxcb-render0
+ - libxcb-shape0
+ - libxcb-xfixes0
+ - libxcb1
+ - libxdmcp6
override-pull: |
snapcraftctl pull
last_committed_tag="$(git describe --tags --abbrev=0)"
echo $last_committed_tag
- last_released_tag="$(snap info $SNAPCRAFT_PROJECT_NAME | awk '$1 == "beta:" { print $2 }')"
- echo $last_released_tag
- # If the latest tag from the upstream project has not been released to
- # beta, build that tag instead of master.
- if [ "${last_committed_tag}" != "${last_released_tag}" ]; then
- VERSION=${last_committed_tag}
- git fetch
- git checkout "${VERSION}"
- else
- VERSION=$(git rev-parse --short HEAD)
- fi
+ VERSION="$(git describe --first-parent --tags --always)"
echo "Setting version to $VERSION"
snapcraftctl set-version "${VERSION}"
apps:
- spt:
+ spt-temp:
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$LD_LIBRARY_PATH
command: spt
