rules 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/make -f
  2. export PYBUILD_NAME = qubesadmin
  3. DPKG_EXPORT_BUILDFLAGS = 1
  4. include /usr/share/dpkg/default.mk
  5. %:
  6. dh $@ --with python3,sphinxdoc --buildsystem=pybuild
  7. override_dh_auto_build: export http_proxy=127.0.0.1:9
  8. override_dh_auto_build: export https_proxy=127.0.0.1:9
  9. override_dh_auto_build:
  10. dh_auto_build
  11. PYTHONPATH=. sphinx-build -N -bhtml doc build/html
  12. PYTHONPATH=. sphinx-build -N -bman doc build/man
  13. override_dh_auto_install:
  14. dh_auto_install
  15. mkdir -p debian/qubes-core-admin-client/etc/xdg/autostart
  16. install -m 0644 etc/qvm-start-daemon.desktop \
  17. debian/qubes-core-admin-client/etc/xdg/autostart/
  18. mkdir -p debian/qubes-core-admin-client/usr/bin
  19. mv debian/python3-qubesadmin/usr/bin/* debian/qubes-core-admin-client/usr/bin/
  20. install -d debian/qubes-core-admin-client/usr/share/man/man1
  21. install -m 0644 build/man/* \
  22. debian/qubes-core-admin-client/usr/share/man/man1/
  23. install -d debian/qubes-core-admin-client/etc/qubes/post-install.d
  24. install -m 0755 scripts/30-keyboard-layout-service.sh \
  25. debian/qubes-core-admin-client/etc/qubes/post-install.d/30-keyboard-layout-service.sh
  26. override_dh_clean:
  27. dh_clean -O--buildsystem=pybuild
  28. make clean