From 537039d28633009b6e54aa3c606e70c467959461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Pondichy?= Date: Fri, 27 Jun 2025 11:29:15 +0200 Subject: [PATCH] scaleway-cli: update to 2.41.0 --- srcpkgs/scaleway-cli/template | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/srcpkgs/scaleway-cli/template b/srcpkgs/scaleway-cli/template index 24e973622fd..816cf8d81cf 100644 --- a/srcpkgs/scaleway-cli/template +++ b/srcpkgs/scaleway-cli/template @@ -1,21 +1,28 @@ # Template file for 'scaleway-cli' pkgname=scaleway-cli -version=2.34.0 +version=2.41.0 revision=1 build_style=go go_import_path=github.com/scaleway/scaleway-cli/v2 go_package=github.com/scaleway/scaleway-cli/v2/cmd/scw -go_ldflags="-X main.Version=$version" +go_ldflags="-X main.Version=${version} -X main.GitBranch=${version} -X main.GitCommit=${version}" short_desc="Interact with the Scaleway API from the command line" maintainer="Sébastien Pondichy " license="MIT" homepage="https://github.com/scaleway/scaleway-cli" distfiles="https://github.com/scaleway/scaleway-cli/archive/v${version}.tar.gz" -checksum=ed2c62cffa0a68a4ed973a405eb190e42eb5a1aa3d021ad3729b1301f5646d70 - -# Skip tests as they fail if SHELL=/bin/sh +checksum=ba056eacd5a012a55789421d0d7579ee002ae298ca9a04a1d9a88eefb0d13ae7 +# Tests fail when run on i686 make_check="no" +pre_build() { + local _date + if [ "$SOURCE_DATE_EPOCH" ]; then + _date="$(date --utc --date "@SOURCE_DATE_EPOCH" "+%Y-%m-%d")" + go_ldflags+=" -X main.BuildDate=${_date}" + fi +} + post_install() { vdoc README.md README vlicense LICENSE