Install battery applet, and make it work in the panel

This commit is contained in:
Ian Douglas Scott 2022-06-25 22:28:56 -07:00
parent ad1707a541
commit 14101dc7db
13 changed files with 89 additions and 5 deletions

5
debian/rules vendored
View file

@ -13,11 +13,12 @@ override_dh_shlibdeps:
override_dh_auto_clean:
if test "${CLEAN}" = "1"; then \
cargo clean; \
cargo clean --manifest-path applets/cosmic-applet-battery/Cargo.toml; \
fi
if ! ischroot && test "${VENDOR}" = "1"; then \
mkdir -p .cargo; \
cargo vendor --sync Cargo.toml | head -n -1 > .cargo/config; \
cargo vendor --sync Cargo.toml --sync applets/cosmic-applet-battery/Cargo.toml | head -n -1 > .cargo/config; \
echo 'directory = "vendor"' >> .cargo/config; \
tar pcf vendor.tar vendor; \
rm -rf vendor; \
@ -27,4 +28,4 @@ override_dh_auto_build:
just rootdir=$(DESTDIR) debug=$(DEBUG) vendor=$(VENDOR)
override_dh_auto_install:
just rootdir=$(DESTDIR) install
just rootdir=$(DESTDIR) install