#!/usr/bin/make -f %: dh $@ # Upstream's pub.dev archives record every directory entry with an epoch (0) # timestamp. dh_install preserves the mtime of the directories it copies, so # the binary package would ship lib/ dated 1970-01-01 and lintian reports it as # package-contains-ancient-file. Stamp the installed directories with the # source date instead (dh exports SOURCE_DATE_EPOCH from debian/changelog, so # builds stay reproducible); no file content is affected. override_dh_install: dh_install find debian/dart-stack-trace -type d -exec touch -d "@$${SOURCE_DATE_EPOCH}" {} +