External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.0KB

  1. #!/usr/bin/make -f
  2. VERSION=$(shell ls | grep \.run | head -n 1 | awk 'sub("-","\n")' | tail -n 1 | awk 'sub("-x86","\n")' | head -n 1)
  3. ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),amd64)
  4. ARDOUR_FILE=Ardour-$(VERSION)-x86_64.run
  5. else
  6. ARDOUR_FILE=Ardour-$(VERSION)-x86.run
  7. endif
  8. override_dh_auto_install:
  9. chmod +x $(ARDOUR_FILE)
  10. ./$(ARDOUR_FILE) --target ./tmp --noexec
  11. chmod -x $(ARDOUR_FILE)
  12. cd tmp && \
  13. tar -xf *.tar
  14. rm tmp/Ardour_*-*/bin/ardour5
  15. rm tmp/Ardour_*-*/bin/*.uninstall.sh
  16. rm -r tmp/Ardour_*-*/etc/bash_completion.d
  17. rm -r tmp/Ardour_*-*/etc/fonts
  18. rm -r tmp/Ardour_*-*/etc/gtk-2.0
  19. rm -r tmp/Ardour_*-*/etc/xml
  20. rm -r tmp/Ardour_*-*/lib/LV2/3D_delay.lv2
  21. rm -r tmp/Ardour_*-*/lib/LV2/dyno-mite.lv2
  22. rm -r tmp/Ardour_*-*/lib/LV2/gvplus.lv2
  23. rm -r tmp/Ardour_*-*/lib/LV2/lv2core.lv2
  24. rm -r tmp/Ardour_*-*/lib/LV2/Micro-Glide.lv2
  25. rm -r tmp/Ardour_*-*/lib/LV2/XT-*.lv2
  26. install -d $(CURDIR)/debian/ardour/usr/lib/lv2
  27. install -d $(CURDIR)/debian/ardour/usr/share/icons/hicolor/16x16/apps
  28. install -d $(CURDIR)/debian/ardour/usr/share/icons/hicolor/22x22/apps
  29. install -d $(CURDIR)/debian/ardour/usr/share/icons/hicolor/32x32/apps
  30. install -d $(CURDIR)/debian/ardour/usr/share/icons/hicolor/48x48/apps
  31. mv tmp/Ardour_*-*/lib/LV2/*.lv2 $(CURDIR)/debian/ardour/usr/lib/lv2/
  32. rm -rf tmp/Ardour_*-*/lib/LV2
  33. cp debian/app*16px.png $(CURDIR)/debian/ardour/usr/share/icons/hicolor/16x16/apps/application-x-ardour.png
  34. cp debian/app*22px.png $(CURDIR)/debian/ardour/usr/share/icons/hicolor/22x22/apps/application-x-ardour.png
  35. cp debian/app*32px.png $(CURDIR)/debian/ardour/usr/share/icons/hicolor/32x32/apps/application-x-ardour.png
  36. cp debian/app*48px.png $(CURDIR)/debian/ardour/usr/share/icons/hicolor/48x48/apps/application-x-ardour.png
  37. override_dh_auto_clean:
  38. chmod -x $(ARDOUR_FILE) || true
  39. rm -rf ./tmp
  40. override_dh_strip:
  41. dh_strip --dbg-package=ardour-dbg
  42. override_dh_shlibdeps:
  43. env LD_LIBRARY_PATH=$(CURDIR)/debian/ardour/opt/ardour/lib:$(LD_LIBRARY_PATH) dh_shlibdeps
  44. %:
  45. dh $@