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.
This commit is contained in:
Christoph Reiter
2024-12-01 10:38:23 +01:00
parent 01ba94e86b
commit c3a6c0c853

View File

@@ -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"
}