From c3a6c0c853b478e8fc661fc96ac655e4e6b5bb38 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 1 Dec 2024 10:38:23 +0100 Subject: [PATCH] oh-my-posh: avoid spaces in date to make "go build" happy By using the iso format. I don't know how to escape it. --- mingw-w64-oh-my-posh/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw-w64-oh-my-posh/PKGBUILD b/mingw-w64-oh-my-posh/PKGBUILD index 5767bcd526..0748337d6c 100644 --- a/mingw-w64-oh-my-posh/PKGBUILD +++ b/mingw-w64-oh-my-posh/PKGBUILD @@ -4,7 +4,7 @@ _realname=oh-my-posh pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=24.11.2 -pkgrel=1 +pkgrel=2 pkgdesc="A prompt theme engine for any shell (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -33,7 +33,7 @@ build() { go build \ -ldflags="-linkmode=external \ -X github.com/jandedobbeleer/oh-my-posh/src/build.Version=${pkgver} \ - -X github.com/jandedobbeleer/oh-my-posh/src/build.Date=$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+%Y-%m-%dT%H:%M:%S %Z')" \ + -X github.com/jandedobbeleer/oh-my-posh/src/build.Date=$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" --iso-8601=seconds)" \ -o "${_realname}.exe" }