Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
a17770de
Commit
a17770de
authored
2 years ago
by
Jakub Jirutka
Browse files
Options
Downloads
Patches
Plain Diff
community/zoxide: replace patch with CARGO_PROFILE_* vars
parent
724c16ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
community/zoxide/APKBUILD
+5
-2
5 additions, 2 deletions
community/zoxide/APKBUILD
community/zoxide/minimize-size.patch
+0
-10
0 additions, 10 deletions
community/zoxide/minimize-size.patch
with
5 additions
and
12 deletions
community/zoxide/APKBUILD
+
5
−
2
View file @
a17770de
...
...
@@ -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
"
This diff is collapsed.
Click to expand it.
community/zoxide/minimize-size.patch
deleted
100644 → 0
+
0
−
10
View file @
724c16ba
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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment