#!/usr/bin/make -f

%:
	dh $@

# pub.dev tar entries carry epoch mtimes; stamp installed directories with the source date.
override_dh_install:
	dh_install
	find debian/dart-vm-service -type d -exec touch -d "@$${SOURCE_DATE_EPOCH}" {} +

# The upstream manifest declares a workspace resolution and dev-only path
# overrides that cannot resolve outside the dart-lang/sdk repository; keep
# only the fields that describe the published library.
	sed -i '12,$$d' debian/dart-vm-service/usr/share/dart/packages/vm_service/pubspec.yaml
