clojure-lsp: update to 2024.08.05.
[void-pkg.git] / common / hooks / pre-pkg / 90-set-timestamps.sh
blob2113b029944c479ace8194665911c420c1bbf442
1 # This hook executes the following tasks:
2 # - sets the timestamps in a package to the commit date
4 hook() {
5 # If SOURCE_DATE_EPOCH is set, set mtimes to that timestamp.
6 if [ -n "$SOURCE_DATE_EPOCH" ]; then
7 msg_normal "$pkgver: setting mtimes to %s\n" "$(date --date "@$SOURCE_DATE_EPOCH")"
8 find $PKGDESTDIR -print0 | xargs -0 touch -h --date "@$SOURCE_DATE_EPOCH"
9 fi