mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/starship: upgrade to 1.14.2 and enable on riscv64
* Build with default features. * Enable on riscv64 (zlib-ng is present in the repo now)
This commit is contained in:
parent
0aabb63d88
commit
6d5d952f7c
@ -1,13 +1,12 @@
|
||||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=starship
|
||||
pkgver=1.12.0
|
||||
pkgver=1.14.2
|
||||
pkgrel=0
|
||||
pkgdesc="Minimal, blazing-fast and infinitely customizable prompt for any shell"
|
||||
url="https://starship.rs"
|
||||
# riscv64: zlib-ng wasn't built yet
|
||||
# s390x: fails to build nix crate
|
||||
arch="all !riscv64 !s390x"
|
||||
arch="all !s390x"
|
||||
license="ISC"
|
||||
makedepends="
|
||||
cargo
|
||||
@ -21,14 +20,14 @@ subpackages="
|
||||
$pkgname-zsh-completion
|
||||
$pkgname-zsh-plugin:_zsh_plugin:noarch
|
||||
"
|
||||
source="https://github.com/starship/starship/archive/v$pkgver/starship-$pkgver.tar.gz
|
||||
source="
|
||||
https://github.com/starship/starship/archive/v$pkgver/starship-$pkgver.tar.gz
|
||||
use-libdbus.patch
|
||||
starship.plugin.zsh
|
||||
"
|
||||
options="net" # fetching dependencies
|
||||
|
||||
# http feature is used just for reporting bugs
|
||||
_cargo_opts="--frozen --no-default-features --features notify"
|
||||
[ "$CARCH" = "riscv64" ] && options="$options textrels"
|
||||
|
||||
|
||||
prepare() {
|
||||
@ -51,7 +50,7 @@ prepare() {
|
||||
}
|
||||
|
||||
build() {
|
||||
cargo build $_cargo_opts --release
|
||||
cargo build --frozen --release
|
||||
|
||||
local i; for i in bash fish zsh; do
|
||||
./target/release/starship completions $i > target/starship.$i
|
||||
@ -64,7 +63,7 @@ check() {
|
||||
# Some tests sporadically fail, try to repeat 3 times before failing.
|
||||
local i; for i in $(seq 0 3); do
|
||||
[ $i -eq 0 ] || msg "Retrying ($i/3)..."
|
||||
cargo test $_cargo_opts && return 0
|
||||
cargo test --frozen && return 0
|
||||
sleep 1
|
||||
done
|
||||
return 1
|
||||
@ -86,7 +85,7 @@ _zsh_plugin() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
455e570f003d341a8feabb81bfa32e30ac819c4b3dfe1704ca09f670a7ac38d758cebe7479ec82d9f92e1052811f46fac483dea76347eee92ec4b84285858d77 starship-1.12.0.tar.gz
|
||||
1f139e6e1da8a2a08fee07371a0589e046e1141e31d977a004497d0576aacf3c70eb951d3f024c07c49a71f7c5aa80929c7ee2360d4cb4e18b9883816171eb73 use-libdbus.patch
|
||||
a6e10281dc3aea26b3ab0e4c168f89419bc2d2be52effbe0b47209580a43d9509252af11421d9e45da1b89d3c829dd79f86bbc27d0269cbfb92b7bdfd19ed817 starship-1.14.2.tar.gz
|
||||
d65d9be50c8284657eae347c7acf7dbaaad690fea119c7a876938c8b3f674fe38b55a5c4c26ec02c209cd09656c6b1ec924b6b4f3ba4d688ed34ea944a5451ba use-libdbus.patch
|
||||
384a3b84b103005d347ef76c9a61f8c5e21cc97f17f195cff157f71f42dbd76fd6f54f93715cbebbee2eab70a275e39917334721fa21d130bd715a7b6334418b starship.plugin.zsh
|
||||
"
|
||||
|
@ -1,15 +1,15 @@
|
||||
Link with system libdbus instead of zbus-rs (Rust implementation).
|
||||
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index 97b393f..89009b2 100644
|
||||
index dcd52cd..8f62b2c 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -55,7 +55,7 @@ indexmap = { version = "1.9.2", features = ["serde"] }
|
||||
@@ -55,7 +55,7 @@ indexmap = { version = "1.9.3", features = ["serde"] }
|
||||
log = { version = "0.4.17", features = ["std"] }
|
||||
# nofity-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
|
||||
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
|
||||
# see: https://github.com/NixOS/nixpkgs/issues/160876
|
||||
-notify-rust = { version = "4.6.0", optional = true }
|
||||
+notify-rust = { version = "4.6.0", default-features = false, features = ["d"], optional = true }
|
||||
nu-ansi-term = "0.46.0"
|
||||
once_cell = "1.16.0"
|
||||
open = "3.2.0"
|
||||
-notify-rust = { version = "4.8.0", optional = true }
|
||||
+notify-rust = { version = "4.8.0", default-features = false, features = ["d"], optional = true }
|
||||
nu-ansi-term = "0.47.0"
|
||||
once_cell = "1.17.1"
|
||||
open = "4.0.1"
|
||||
|
Loading…
Reference in New Issue
Block a user