mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
community/starship: remove unused regex features to reduce binary size
This commit is contained in:
parent
6d5d952f7c
commit
76b66da11a
@ -20,8 +20,8 @@ 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
|
||||
regex-features.patch
|
||||
use-libdbus.patch
|
||||
starship.plugin.zsh
|
||||
"
|
||||
@ -86,6 +86,7 @@ _zsh_plugin() {
|
||||
|
||||
sha512sums="
|
||||
a6e10281dc3aea26b3ab0e4c168f89419bc2d2be52effbe0b47209580a43d9509252af11421d9e45da1b89d3c829dd79f86bbc27d0269cbfb92b7bdfd19ed817 starship-1.14.2.tar.gz
|
||||
0ae3ad12e9f0ebd8ed164a75b804bdc1fa28782ccdf4f58f4666d03ac1378e3feee4eb6cb53da04ec2beeef9e8b6c1ae96007bcb3a1df508e8ff31423e11074c regex-features.patch
|
||||
d65d9be50c8284657eae347c7acf7dbaaad690fea119c7a876938c8b3f674fe38b55a5c4c26ec02c209cd09656c6b1ec924b6b4f3ba4d688ed34ea944a5451ba use-libdbus.patch
|
||||
384a3b84b103005d347ef76c9a61f8c5e21cc97f17f195cff157f71f42dbd76fd6f54f93715cbebbee2eab70a275e39917334721fa21d130bd715a7b6334418b starship.plugin.zsh
|
||||
"
|
||||
|
19
community/starship/regex-features.patch
Normal file
19
community/starship/regex-features.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Patch-Source: https://github.com/starship/starship/pull/5175
|
||||
--
|
||||
From a1b7169bf78614555f4e10f0d6daece1dae52ccd Mon Sep 17 00:00:00 2001
|
||||
From: Jakub Jirutka <jakub@jirutka.cz>
|
||||
Date: Mon, 8 May 2023 18:18:23 +0200
|
||||
Subject: [PATCH] build(deps): disable unnecessary/unused regex features
|
||||
|
||||
This will reduce the binary size by ~400 kB.
|
||||
---
|
||||
Cargo.toml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index 71eb4d0b2a6c..8a7184ef116e 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -70 +70 @@
|
||||
-regex = "1.7.3"
|
||||
+regex = { version = "1.7.3", default-features = false, features = ["perf", "std", "unicode-perl"] }
|
Loading…
Reference in New Issue
Block a user