rules 594 B

12345678910111213141516171819202122
  1. #!/usr/bin/make -f
  2. export DH_VERBOSE=1
  3. export PYBUILD_NAME=odoo-bin
  4. export PYBUILD_DISABLE=test
  5. %:
  6. dh ${@} --with=python3 --buildsystem=pybuild
  7. override_dh_auto_build:
  8. cp -r addons/* odoo/addons/
  9. dh_auto_build
  10. override_dh_auto_install:
  11. dh_auto_install
  12. rm debian/odoo/usr/lib/python3*/dist-packages/odoo/addons/point_of_sale/static/src/fonts/Inconsolata.otf
  13. for LINKTARGET in `awk '{ print $2 }' odoo.links`; do rm debian/odoo/${LINKTARGET} ; done
  14. find debian/odoo -name LICENSE.txt -exec rm {} \;
  15. override_dh_auto_clean:
  16. dh_auto_clean
  17. for d in addons/* ; do rm -fr odoo/$$d ; done