Guest User

Untitled

a guest
Jul 22nd, 2018
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/make -f
  2.  
  3. DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
  4. VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
  5. MIDVERS := $(shell echo $(DEBVERS) | sed 's/-g[0-9a-f]\+$$//')
  6.  
  7. NUMJOBS = 1
  8. ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
  9. NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
  10. endif
  11.  
  12. %:
  13. dh $@ --buildsystem makefile
  14.  
  15. override_dh_auto_build:
  16. qbs build -f projectname.qbs --jobs $(NUMJOBS) release project.versionString:$(VERSION)
  17.  
  18. override_dh_auto_clean:
  19. qbs clean -f projectname.qbs || :
  20.  
  21. override_dh_auto_configure:
  22. qbs config --unset profiles
  23. qbs setup-toolchains --detect
  24. qbs setup-qt /usr/bin/qmake qt
  25. qbs config profiles.qt.baseProfile gcc
  26. qbs config defaultProfile qt
  27.  
  28. override_dh_auto_install:
  29. qbs install -f projectname.qbs --install-root debian/projectname/usr release project.versionString:$(VERSION)
  30.  
  31. override_dh_auto_test:
  32. qbs build -f projectname.qbs --products autotest-runner release project.versionString:$(VERSION)
  33.  
  34. override_dh_strip:
  35. dh_strip --dbg-package=projectname-dbg
RAW Paste Data