Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions srcpkgs/starship/template
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}
Expand Down
Loading