upgpkg(main/starship): 1.11.0

Signed-off-by: Kevin Williams <admin@utermux.dev>
This commit is contained in:
Kevin Williams 2022-10-15 16:06:55 +08:00 committed by Uchiha Kakashi
parent becefe6711
commit d08e314d47
3 changed files with 11 additions and 11 deletions

View File

@ -4,19 +4,19 @@
"""
[features]
-default = ["battery", "notify"]
-default = ["battery", "notify", "git-repository-max-perf"]
-battery = ["starship-battery"]
+default = ["notify"]
+default = ["notify", "git-repository-max-perf"]
config-schema = ["schemars"]
notify = ["notify-rust"]
@@ -67,9 +66,6 @@
serde_json = "1.0.85"
@@ -74,9 +73,6 @@
serde_json = "1.0.86"
sha-1 = "0.10.0"
shadow-rs = { version = "0.16.3", default-features = false }
-# battery is optional (on by default) because the crate doesn't currently build for Termux
-# see: https://github.com/svartalf/rust-battery/issues/33
-starship-battery = { version = "0.7.9", optional = true }
strsim = "0.10.0"
systemstat = "=0.2.0"
systemstat = "=0.2.1"
terminal_size = "0.2.1"

View File

@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://starship.rs
TERMUX_PKG_DESCRIPTION="A minimal, blazing fast, and extremely customizable prompt for any shell"
TERMUX_PKG_LICENSE="ISC"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.10.3"
TERMUX_PKG_VERSION="1.11.0"
TERMUX_PKG_SRCURL=https://github.com/starship/starship/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=39c5f8f88a8aa6d32575ddb26017572f2683fae129b9be5442acbae74019ea5e
TERMUX_PKG_SHA256=7b408ef8a2ab47d7a7d0e120889bf12c8f2a965796f8a027d8b2176287fdec6b
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="openssl, zlib"
TERMUX_PKG_BUILD_IN_SRC=true
@ -16,10 +16,10 @@ termux_step_pre_configure() {
: "${CARGO_HOME:=${HOME}/.cargo}"
export CARGO_HOME
rm -rf "${CARGO_HOME}"/registry/src/github.com-*/git-config-*/
rm -rf "${CARGO_HOME}"/registry/src/github.com-*/git-config-value*/
cargo fetch --target "${CARGO_TARGET_NAME}"
for d in "${CARGO_HOME}"/registry/src/github.com-*/git-config-*/; do
for d in "${CARGO_HOME}"/registry/src/github.com-*/git-config-value*/; do
patch --silent -p1 -d "${d}" <"${TERMUX_PKG_BUILDER_DIR}"/rust-git-config-path.diff || {
echo "[${FUNCNAME[0]}]: failed to patch git-config. Exiting now."
exit 1

View File

@ -1,5 +1,5 @@
--- a/src/values/path.rs
+++ b/src/values/path.rs
--- a/src/path.rs
+++ b/src/path.rs
@@ -170,7 +170,7 @@
Err(interpolate::Error::UserInterpolationUnsupported)
}