2018-08-08 05:18:59 +00:00
|
|
|
#! /usr/bin/make -f
|
2018-08-10 01:59:53 +00:00
|
|
|
CONFIG := Release
|
|
|
|
TERM := xterm
|
2018-08-08 05:18:59 +00:00
|
|
|
SHELL := /bin/bash
|
2019-01-10 18:45:21 +00:00
|
|
|
DOTNETRUNTIME := debian-x64
|
2018-08-08 05:18:59 +00:00
|
|
|
export DH_VERBOSE=1
|
2018-12-12 15:00:32 +00:00
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
2018-08-08 05:18:59 +00:00
|
|
|
|
|
|
|
%:
|
2018-08-10 01:59:53 +00:00
|
|
|
dh $@
|
2018-08-08 05:18:59 +00:00
|
|
|
|
|
|
|
# disable "make check"
|
|
|
|
override_dh_auto_test:
|
|
|
|
|
|
|
|
# disable stripping debugging symbols
|
|
|
|
override_dh_clistrip:
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
2019-02-22 12:52:32 +00:00
|
|
|
dotnet publish --configuration $(CONFIG) --output='$(CURDIR)/usr/lib/jellyfin/bin' --self-contained --runtime $(DOTNETRUNTIME) \
|
|
|
|
"-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" Jellyfin.Server
|
2018-08-08 05:18:59 +00:00
|
|
|
|
|
|
|
override_dh_auto_clean:
|
2019-01-10 18:45:21 +00:00
|
|
|
dotnet clean -maxcpucount:1 --configuration $(CONFIG) Jellyfin.Server || true
|
2018-12-15 02:21:48 +00:00
|
|
|
rm -rf '$(CURDIR)/usr'
|