mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
starship: update to 0.42.0, add completions.
- Completions are generated similar to the ones for rustup. Closes: #22761 Co-Authored-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
This commit is contained in:
parent
b87568accf
commit
701002f61b
1 changed files with 26 additions and 2 deletions
|
@ -1,18 +1,42 @@
|
||||||
# Template file for 'starship'
|
# Template file for 'starship'
|
||||||
pkgname=starship
|
pkgname=starship
|
||||||
version=0.41.3
|
version=0.42.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
build_helper="rust"
|
build_helper="rust"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libgit2-devel"
|
makedepends="libgit2-devel"
|
||||||
|
checkdepends="git"
|
||||||
short_desc="Minimal, fast and customizable cross-shell prompt"
|
short_desc="Minimal, fast and customizable cross-shell prompt"
|
||||||
maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
|
maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
homepage="https://starship.rs"
|
homepage="https://starship.rs"
|
||||||
distfiles="https://github.com/starship/starship/archive/v${version}.tar.gz"
|
distfiles="https://github.com/starship/starship/archive/v${version}.tar.gz"
|
||||||
checksum=ce2c86e3f3a7d8cd2e1a204e7ef491473fdd93c41bb43a4718fdd66039f7bc99
|
checksum=cf7b5848949bc1e61dc771ef2a429e4ccb8d339e1ca705bdf521fc4a4fc96309
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" qemu-user-static"
|
||||||
|
fi
|
||||||
|
|
||||||
|
pre_check() {
|
||||||
|
[ -L target/debug ] && unlink target/debug
|
||||||
|
ln -s release target/debug
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
STARSHIP="target/${RUST_TARGET}/release/starship"
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
export QEMU_LD_PREFIX=${XBPS_CROSS_BASE}
|
||||||
|
STARSHIP="/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static ${STARSHIP}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
${STARSHIP} completions zsh >starship.zsh
|
||||||
|
${STARSHIP} completions bash >starship.bash
|
||||||
|
${STARSHIP} completions fish >starship.fish
|
||||||
|
|
||||||
|
vinstall starship.zsh 0644 usr/share/zsh/site-functions/ _starship
|
||||||
|
vinstall starship.bash 0644 usr/share/bash-completion/completions/ starship
|
||||||
|
vinstall starship.fish 0644 usr/share/fish/vendor_completions.d/
|
||||||
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue