From 9220495572c8de69ca2a1cb69612495ac0df32ff Mon Sep 17 00:00:00 2001 From: Pierre Sabbagh Date: Sat, 31 Oct 2026 14:45:49 +0200 Subject: [PATCH] starship: update to 1.27.0. --- srcpkgs/starship/template | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/srcpkgs/starship/template b/srcpkgs/starship/template index b599cdc7042a18..aebda704a93946 100644 --- a/srcpkgs/starship/template +++ b/srcpkgs/starship/template @@ -1,6 +1,6 @@ # Template file for 'starship' pkgname=starship -version=1.26.0 +version=1.27.0 revision=1 build_style=cargo build_helper=qemu @@ -11,13 +11,34 @@ license="ISC" homepage="https://starship.rs" changelog="https://raw.githubusercontent.com/starship/starship/master/CHANGELOG.md" distfiles="https://github.com/starship/starship/archive/refs/tags/v${version}.tar.gz" -checksum=8c95e8a6c596b29ac192104eae00dd991e8c8fd66083fd2b34d6b223a5803a59 +checksum=f1887ffa88a7ba437d2932501794047e28d03387996f7d1c364631c053cffc44 make_check_pre="env HOME=${wrksrc}/fake-home" +_setup_env() { + # workaround the cc-rs mixing CFLAGS for host and target. + # https://github.com/rust-lang/cc-rs/issues/1469 + export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" \ + CXXFLAGS_${RUST_BUILD//-/_}="${CXXFLAGS_host}" \ + LDFLAGS_${RUST_BUILD//-/_}="${LDFLAGS_host}" \ + CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" \ + CXXFLAGS_${RUST_TARGET//-/_}="${CXXFLAGS}" \ + LDFLAGS_${RUST_TARGET//-/_}="${LDFLAGS}" \ + CFLAGS="" CXXFLAGS="" LDFLAGS="" +} + +pre_build() { + _setup_env +} + pre_check() { + _setup_env mkdir -p fake-home } +pre_install() { + _setup_env +} + post_install() { for shell in bash fish zsh; do vtargetrun ${DESTDIR}/usr/bin/starship completions ${shell} > starship.${shell}