File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Template file for 'starship'
22pkgname=starship
3- version=1.26 .0
3+ version=1.27 .0
44revision=1
55build_style=cargo
66build_helper=qemu
@@ -11,13 +11,34 @@ license="ISC"
1111homepage="https://starship.rs"
1212changelog="https://raw.githubusercontent.com/starship/starship/master/CHANGELOG.md"
1313distfiles="https://github.com/starship/starship/archive/refs/tags/v${version}.tar.gz"
14- checksum=8c95e8a6c596b29ac192104eae00dd991e8c8fd66083fd2b34d6b223a5803a59
14+ checksum=f1887ffa88a7ba437d2932501794047e28d03387996f7d1c364631c053cffc44
1515make_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+
1733pre_check() {
34+ _setup_env
1835 mkdir -p fake-home
1936}
2037
38+ pre_install() {
39+ _setup_env
40+ }
41+
2142post_install() {
2243 for shell in bash fish zsh; do
2344 vtargetrun ${DESTDIR}/usr/bin/starship completions ${shell} > starship.${shell}
You can’t perform that action at this time.
0 commit comments