makedeb
Blazing fast terminal file manager written in Rust, based on async I/O
Viewing /PKGBUILD
.
Click here to go back to the Git tree for yazi-bin.
# Maintainer: Zhongmin Lin <zhongmin.lin3@gmail.com>
pkgname=yazi-bin
pkgver=0.3.3
pkgrel=1
pkgdesc="Blazing fast terminal file manager written in Rust, based on async I/O"
url="https://github.com/sxyazi/yazi"
arch=("amd64")
license=('MIT')
# depends=('gcc-libs' 'ttf-nerd-fonts-symbols')
optdepends=(
'jq'
'unar'
'ffmpegthumbnailer'
'fd'
'ripgrep'
'fzf'
'poppler-data'
'poppler-utils'
'zoxide'
)
# makedepends=('cargo' 'imagemagick')
source=("$pkgname-$pkgver.zip::https://github.com/sxyazi/${pkgname%-bin}/releases/download/v$pkgver/${pkgname%-bin}-x86_64-unknown-linux-gnu.zip")
sha256sums=('5367c2de32788558cab0bd748c9a7de4509b98c2ddc6efbf04382b916016a0a9')
package() {
cd "${pkgname%-bin}-x86_64-unknown-linux-gnu"
install -Dm755 "${pkgname%-bin}" "$pkgdir/usr/bin/${pkgname%-bin}"
install -Dm755 "ya" "$pkgdir/usr/bin/ya"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-bin}/LICENCE"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname%-bin}/README.md"
# install -Dm644 "assets/${pkgname%-bin}.desktop" "$pkgdir/usr/share/applications/${pkgname%-bin}.desktop"
cd "completions"
install -Dm644 "${pkgname%-bin}.bash" "$pkgdir/usr/share/bash-completion/completions/${pkgname%-bin}"
install -Dm644 "${pkgname%-bin}.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d/"
install -Dm644 "_${pkgname%-bin}" -t "$pkgdir/usr/share/zsh/vendor-completions/"
}