rules 647 B

123456789101112131415161718192021222324
  1. #! /usr/bin/make -f
  2. CONFIG := Release
  3. TERM := xterm
  4. SHELL := /bin/bash
  5. DOTNETRUNTIME := debian-x64
  6. export DH_VERBOSE=1
  7. export DOTNET_CLI_TELEMETRY_OPTOUT=1
  8. %:
  9. dh $@
  10. # disable "make check"
  11. override_dh_auto_test:
  12. # disable stripping debugging symbols
  13. override_dh_clistrip:
  14. override_dh_auto_build:
  15. dotnet publish --configuration $(CONFIG) --output='$(CURDIR)/usr/lib/jellyfin/bin' --self-contained --runtime $(DOTNETRUNTIME) \
  16. "-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" Jellyfin.Server
  17. override_dh_auto_clean:
  18. dotnet clean -maxcpucount:1 --configuration $(CONFIG) Jellyfin.Server || true
  19. rm -rf '$(CURDIR)/usr'