i3: move post_patch to pre_configure

- We need the date wrapper for reproducibility.
This commit is contained in:
Đoàn Trần Công Danh 2021-02-08 06:54:58 +07:00
parent dc21dd6c3c
commit 7a7f39d8be

View file

@ -21,7 +21,10 @@ case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libglob-devel";; *-musl) makedepends+=" libglob-devel";;
esac esac
post_patch() { pre_configure() {
# This change must be in pre_configre because:
# - it needs to be done before configure
# - date wrapper is only available from pre-configure
vsed -i "s/-non-git/ ($(date --iso-8601))/" meson.build vsed -i "s/-non-git/ ($(date --iso-8601))/" meson.build
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) *-musl)