summaryrefslogtreecommitdiff
path: root/exa/Pkgfile
blob: 7ca4a7a1f852bf27fa3b377cafbee232e19d34f4 (plain)
    1 # Description: exa is a modern replacement for ls written in rust
    2 # URL: https://the.exa.website/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: rust
    5 
    6 name=exa
    7 version=0.10.0
    8 release=1
    9 source=(https://github.com/ogham/exa/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   13   mkdir "$PKGMK_SOURCE_DIR/rust" || true
   14   export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
   15 
   16   cargo update --manifest-path $name-$version/Cargo.toml
   17   cargo fetch --manifest-path $name-$version/Cargo.toml
   18   cargo build --release --locked --manifest-path $name-$version/Cargo.toml
   19   install -Dt $PKG/usr/bin $name-$version/target/release/exa
   20 
   21   prt-get isinst bash-completion && install -Dm644 $name-$version/completions/completions.bash \
   22     $PKG/usr/share/bash-completion/completions/$name || true
   23   prt-get isinst zsh && install -Dm644 $name-$version/completions/completions.zsh \
   24     $PKG/usr/share/zsh/site-functions/_$name || true
   25 }

Generated by cgit