From 9af91808aa6aedaae924e11ff0a23d82754327ff Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Sun, 2 Apr 2023 15:05:11 -0400 Subject: [PATCH] starship: update to 1.13.1 --- srcpkgs/starship/template | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/srcpkgs/starship/template b/srcpkgs/starship/template index 6e8e90c3bfe8..721a0de8f041 100644 --- a/srcpkgs/starship/template +++ b/srcpkgs/starship/template @@ -1,6 +1,6 @@ # Template file for 'starship' pkgname=starship -version=1.12.0 +version=1.13.1 revision=1 build_style=cargo build_helper=qemu @@ -13,14 +13,7 @@ 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=748a0541009b0bee5f51b716d072f244d8d5cb3fb8d768519ed305494ea11e02 - -post_build() { - STARSHIP="target/${RUST_TARGET}/release/starship" - vtargetrun ${STARSHIP} completions zsh >starship.zsh - vtargetrun ${STARSHIP} completions bash >starship.bash - vtargetrun ${STARSHIP} completions fish >starship.fish -} +checksum=6cce984c7fb0067b9dc457274139f277e2ff56488811c96a7ae68102184656f9 do_check() { mkdir -p fake-home @@ -28,9 +21,11 @@ do_check() { } post_install() { - vcompletion starship.bash bash - vcompletion starship.fish fish - vcompletion starship.zsh zsh + STARSHIP="${DESTDIR}/usr/bin/starship" + for shell in bash fish zsh; do + vtargetrun ${STARSHIP} completions ${shell} > starship.${shell} + vcompletion starship.${shell} ${shell} + done vlicense LICENSE }