Skip to content
Snippets Groups Projects
Commit a17770de authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

community/zoxide: replace patch with CARGO_PROFILE_* vars

parent 724c16ba
No related branches found
No related tags found
No related merge requests found
......@@ -16,11 +16,15 @@ subpackages="
$pkgname-zsh-completion
"
source="https://github.com/ajeetdsouza/zoxide/archive/v$pkgver/zoxide-$pkgver.tar.gz
minimize-size.patch
exclude-shellcheck-test.patch
remove-pwsh-xonsh.patch
"
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO="true"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export CARGO_PROFILE_RELEASE_PANIC="abort"
prepare() {
default_prepare
......@@ -49,7 +53,6 @@ package() {
sha512sums="
5f0bed68a391a28b7065ec7d50e5477547174f07e6e785817cb724b0bf59f174b84da2d4f22a9f49e06595a6570a2885f99ef7d0c08711a4ee46f5d3086cae96 zoxide-0.8.0.tar.gz
f094784e84f3b11987b224f23f8820514be5da826a09d26fec423967b0572cb9dfea77a81b0d7a09c0dfd0ff56efebc344a2ab238912b3c9caaa681d9d793204 minimize-size.patch
8b4430d93510c312db029e5abed18181c723b4db851db78acb26e171a961b51000cb65777043a54788a090bcf679acb841387bf07e05e41b992f306f06b9c812 exclude-shellcheck-test.patch
c699dc03421426cca6da08ff2ec664b659c3094bc8fa67808868c36f8cdc68546b31ef1bd162cabaf8996b6a13f5fcbbda0983256e2daa6a1677366fd36459c7 remove-pwsh-xonsh.patch
"
Reduces binary size from 960 kiB to 702 kiB.
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,3 +31,5 @@
[profile.release]
codegen-units = 1
lto = true
+opt-level = "z"
+panic = "abort"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment