George Hu pushed to branch main at Arch Linux / Packaging / Packages / onefetch


Commits:
9e7cf5ac by George Hu at 2026-02-26T23:16:20+08:00
Remove vendored zstd

Link against the system-provided zstd instead of the bundled copy.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -9,6 +9,7 @@ pkgbase = onefetch
        makedepends = cmake
        makedepends = git
        depends = gcc-libs
+       depends = zstd
        source = git+https://github.com/o2sh/onefetch.git#tag=2.26.1
        sha256sums = 
fb752ae60ffc5c64e4198478ae33f9cc7c84f28c3a30a1ecaf9e7a35ea9e9a97
 


=====================================
PKGBUILD
=====================================
@@ -10,7 +10,7 @@ pkgdesc="Git repository summary on your terminal"
 url="https://github.com/o2sh/onefetch";
 license=('MIT')
 arch=('x86_64')
-depends=('gcc-libs')
+depends=('gcc-libs' 'zstd')
 makedepends=('cargo' 'cmake' 'git')
 source=("git+$url.git#tag=$pkgver")
 sha256sums=('fb752ae60ffc5c64e4198478ae33f9cc7c84f28c3a30a1ecaf9e7a35ea9e9a97')
@@ -24,7 +24,7 @@ prepare() {
 build() {
   cd "$pkgname"
   CFLAGS+=' -ffat-lto-objects'
-  cargo build --frozen --release --all-features
+  ZSTD_SYS_USE_PKG_CONFIG=1 cargo build --frozen --release --all-features
   local _completion="target/release/$pkgname --generate"
   $_completion bash > "completions/$pkgbase"
   $_completion fish > "completions/$pkgbase.fish"
@@ -33,7 +33,7 @@ build() {
 
 check() {
   cd "$pkgname"
-  cargo test --frozen --all-features
+  ZSTD_SYS_USE_PKG_CONFIG=1 cargo test --frozen --all-features
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/onefetch/-/commit/9e7cf5ac1cbdf4225fc6684debca560af809a962

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/onefetch/-/commit/9e7cf5ac1cbdf4225fc6684debca560af809a962
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to