Skip to content

Commit 9220495

Browse files
committed
starship: update to 1.27.0.
1 parent 13e03bb commit 9220495

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

‎srcpkgs/starship/template‎

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Template file for 'starship'
22
pkgname=starship
3-
version=1.26.0
3+
version=1.27.0
44
revision=1
55
build_style=cargo
66
build_helper=qemu
@@ -11,13 +11,34 @@ license="ISC"
1111
homepage="https://starship.rs"
1212
changelog="https://raw.githubusercontent.com/starship/starship/master/CHANGELOG.md"
1313
distfiles="https://github.com/starship/starship/archive/refs/tags/v${version}.tar.gz"
14-
checksum=8c95e8a6c596b29ac192104eae00dd991e8c8fd66083fd2b34d6b223a5803a59
14+
checksum=f1887ffa88a7ba437d2932501794047e28d03387996f7d1c364631c053cffc44
1515
make_check_pre="env HOME=${wrksrc}/fake-home"
1616

17+
_setup_env() {
18+
# workaround the cc-rs mixing CFLAGS for host and target.
19+
# https://github.com/rust-lang/cc-rs/issues/1469
20+
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" \
21+
CXXFLAGS_${RUST_BUILD//-/_}="${CXXFLAGS_host}" \
22+
LDFLAGS_${RUST_BUILD//-/_}="${LDFLAGS_host}" \
23+
CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" \
24+
CXXFLAGS_${RUST_TARGET//-/_}="${CXXFLAGS}" \
25+
LDFLAGS_${RUST_TARGET//-/_}="${LDFLAGS}" \
26+
CFLAGS="" CXXFLAGS="" LDFLAGS=""
27+
}
28+
29+
pre_build() {
30+
_setup_env
31+
}
32+
1733
pre_check() {
34+
_setup_env
1835
mkdir -p fake-home
1936
}
2037

38+
pre_install() {
39+
_setup_env
40+
}
41+
2142
post_install() {
2243
for shell in bash fish zsh; do
2344
vtargetrun ${DESTDIR}/usr/bin/starship completions ${shell} > starship.${shell}

0 commit comments

Comments
 (0)