Build: Use vendored dependencies for building .deb packages
It is currently not possible to build Squeekboard with only packages that are available in Debian. This is not likely to change until Squeekboard has been ported to GTK4 or gtk4-layer-shell. Until then, vendor the dependencies during the build, so that one can still use the ".deb"-packages for testing. Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/659>
This commit is contained in:
committed by
Marge Bot
parent
c3f46c8db8
commit
117b3e0763
5
debian/cargo/config
vendored
5
debian/cargo/config
vendored
@ -8,4 +8,7 @@ registry = 'https://github.com/rust-lang/crates.io-index'
|
||||
replace-with = 'vendored-sources'
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = '/usr/share/cargo/registry'
|
||||
# TODO: Use this instead of `../vendor`,
|
||||
# after Squeekboard can also be built with Debian packages only.
|
||||
# directory = '/usr/share/cargo/registry'
|
||||
directory = '../vendor'
|
||||
4
debian/rules
vendored
4
debian/rules
vendored
@ -26,3 +26,7 @@ export RUSTFLAGS = --remap-path-prefix=$(CURDIR)=/remap-pwd $(xgot)
|
||||
|
||||
%:
|
||||
dh $@ --builddirectory=_build --buildsystem=meson
|
||||
|
||||
# TODO: Remove this, after Squeekboard can also be built with Debian packages only.
|
||||
execute_before_dh_auto_configure:
|
||||
cargo vendor
|
||||
|
||||
Reference in New Issue
Block a user