1 # This hook executes the following tasks:
2 # - sets the timestamps in a package to the commit date
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"