pop-launcher/debian/rules

35 lines
717 B
Text
Raw Normal View History

2021-08-10 01:04:20 +02:00
#!/usr/bin/make -f
VENDOR ?= 1
2021-08-10 01:04:20 +02:00
CLEAN ?= 1
DEBUG ?= 0
2021-08-10 01:04:20 +02:00
DESTDIR=debian/tmp
%:
dh $@ --with=systemd
override_dh_auto_clean:
if test "${CLEAN}" = "1"; then \
cargo clean; \
fi
if ! ischroot && test "${VENDOR}" = "1"; then \
mkdir -p .cargo; \
cargo vendor --sync plugins/Cargo.toml \
--sync bin/Cargo.toml \
--sync service/Cargo.toml \
| head -n -1 > .cargo/config; \
echo 'directory = "vendor"' >> .cargo/config; \
tar pcf vendor.tar vendor; \
rm -rf vendor; \
fi
2021-08-10 01:04:20 +02:00
override_dh_auto_build:
just rootdir=$(DESTDIR) build-vendored
override_dh_auto_install:
just rootdir=$(DESTDIR) install
2021-08-10 01:04:20 +02:00
override_dh_fixperms:
dh_fixperms
chmod +x debian/pop-launcher/usr/lib/pop-launcher/scripts/**/*.sh