21 lines
817 B
Plaintext
21 lines
817 B
Plaintext
# Description: A modern, maintained replacement for ls
|
|
# URL: https://github.com/eza-community/eza
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: rust
|
|
|
|
name=eza
|
|
version=0.17.0
|
|
release=1
|
|
source=(https://github.com/eza-community/eza/archive/v$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
|
|
|
cargo build --release --manifest-path $name-$version/Cargo.toml
|
|
|
|
prt-get isinst bash-completions && install -Dm644 $name-$version/completions/bash/eza $PKG/usr/share/bash-completion/completions/eza
|
|
prt-get isinst zsh && install -Dm644 $name-$version/completions/zsh/_eza $PKG/usr/share/zsh/site-functions/_eza
|
|
install -Dt $PKG/usr/bin $name-$version/target/release/$name
|
|
}
|