Compare commits

...

2 Commits

Author SHA1 Message Date
b58993d619 new bblfs: sys-fs/duf-0.9.1 2026-01-19 18:17:16 -05:00
a4bd47c4cc new bblfs: app-misc/yazi-25.5.31 2026-01-19 18:16:46 -05:00
2 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
pkgname=yazi
pkgver=25.5.31
pkgdesc="Blazing fast terminal file manager written in Rust, based on async I/O."
homepage="https://yazi-rs.github.io"
license=("MIT")
depends=("oniguruma")
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/sxyazi/yazi/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=("c390d3e813cbefbe5c430df521f7d563aff8461eb249a90a11fba05db56205bfce5df0f15ae7a57aa8a47cff34094b969fe6fbdfa9cd9a102dba3b8cc9c30911")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
sed -i -r 's/strip\s+= true/strip = false/' Cargo.toml
cargo fetch --locked --target "$(rustc --print host-tuple)"
}
src_build() {
export YAZI_GEN_COMPLETIONS=true
export RUSTONIG_SYSTEM_LIBONIG=1
cargo build --frozen --release --no-default-features
}
_install_completions() {
pushd "$1/completions"
install -Dm644 "$2.bash" "$pkgdir/usr/share/bash-completion/completions/$2"
install -Dm644 "$2.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d/"
install -Dm644 "_$2" -t "$pkgdir/usr/share/zsh/site-functions/"
popd
}
src_install() {
install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
install -Dm755 "target/release/ya" -t "$pkgdir/usr/bin/"
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/$pkgname-${pkgver}/"
install -Dm644 "assets/yazi.desktop" -t "$pkgdir/usr/share/applications/"
_install_completions "$pkgname-boot" "$pkgname"
_install_completions "$pkgname-cli" "ya"
}
# vim:ft=sh syn=sh et sw=2:

36
sys-fs/duf-0.9.1.PKGBUILD Normal file
View File

@@ -0,0 +1,36 @@
pkgname=duf
pkgver=0.9.1
pkgdesc="Disk Usage/Free Utility - a better 'df' alternative"
homepage="https://github.com/muesli/duf"
license=("MIT" "BSD" "Apache-2.0")
sources=("${pkgname}-${pkgver}.tar.gz")
bdepends=("go")
urls=("https://github.com/muesli/duf/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=("5ebb8b8800268f97590488307c83f7adcd133339e5f2b86d26903b112ab826fefc66175c0f03e23b6ac1a7ebe81c416bb44f302e459b36cae6fe50279345d203")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
local commit=$(zcat ${distdir}/${sources[0]} | git get-tar-commit-id)
local extraflags="-X main.Version=$pkgver -X main.CommitSHA=$commit"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external $extraflags -extldflags \"$LDFLAGS\"" \
-o "$pkgname" .
}
src_install() {
install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "$pkgname.1"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
# vim:ft=sh syn=sh et sw=2: