contrib/eza/Pkgfile

23 lines
953 B
Plaintext
Raw Normal View History

2023-09-15 19:01:22 +02:00
# 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
2024-07-25 19:33:57 +02:00
version=0.18.23
2024-07-26 20:15:51 +02:00
release=2
source=(https://github.com/eza-community/eza/archive/v$version/$name-$version.tar.gz
6ca47ee7a8e4dac3ac67adf405d59a46129b7901.patch)
2023-09-15 19:01:22 +02:00
build() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
2024-07-26 20:15:51 +02:00
patch -Np1 -d $name-$version -i $SRC/6ca47ee7a8e4dac3ac67adf405d59a46129b7901.patch
2023-09-15 19:01:22 +02:00
cargo build --release --manifest-path $name-$version/Cargo.toml
2023-10-08 12:29:55 +02:00
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
2023-09-15 19:01:22 +02:00
install -Dt $PKG/usr/bin $name-$version/target/release/$name
}