Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build blueprint-compiler from source #409

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ architectures:
- build-on: armhf

parts:
blueprint-compiler:
source: https://gitlab.gnome.org/jwestman/blueprint-compiler.git
source-tag: 'v0.10.0'
plugin: meson
meson-parameters:
- --prefix=/usr
override-prime: ''
chromaprint:
plugin: cmake
source: https://github.com/acoustid/chromaprint.git
Expand All @@ -36,12 +43,10 @@ parts:
- -usr/include

tagger:
after: [ chromaprint ]
# See 'snapcraft plugins'
after: [ chromaprint, blueprint-compiler ]
plugin: nil
source: .
build-packages:
- blueprint-compiler
- wget
override-pull: |
craftctl default
Expand All @@ -52,6 +57,8 @@ parts:
override-build: |
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools:$HOME/.cargo/bin
export PYTHONPATH=$CRAFT_STAGE/usr/lib/python3/dist-packages:$PYTHONPATH
export GI_TYPELIB_PATH=/snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:/snap/gnome-42-2204-sdk/current/usr/lib/girepository-1.0
cd $CRAFT_PART_SRC
dotnet tool restore
dotnet cake --target=Publish --prefix=/snap/tagger/current/usr --ui=gnome --self-contained
Expand Down
Loading