diff --git a/debian/cargo/config b/debian/cargo/config index 22f26415..48c7cd4e 100644 --- a/debian/cargo/config +++ b/debian/cargo/config @@ -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' \ No newline at end of file diff --git a/debian/rules b/debian/rules index f4755666..5636b647 100755 --- a/debian/rules +++ b/debian/rules @@ -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