summaryrefslogtreecommitdiff
path: root/zoxide/Pkgfile
blob: 8a9dc3613eac71124ce93cf1abaaab7eb4a90773 (plain)
    1 # Description: A smarter cd command. Supports all major shells.
    2 # URL: https://github.com/ajeetdsouza/zoxide
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: rust
    5 
    6 name=zoxide
    7 version=0.8.3
    8 release=1
    9 source=(https://github.com/ajeetdsouza/zoxide/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   13   [[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
   14 
   15   cargo build --release --manifest-path $name-$version/Cargo.toml
   16 
   17   prt-get isinst bash-completion && install -vDm644 $name-$version/contrib/completions/zoxide.bash $PKG/usr/share/bash-completion/completions/zoxide
   18   prt-get isinst zsh && install -vDm644 -t $PKG/usr/share/zsh/site-functions $name-$version/contrib/completions/_zoxide
   19 
   20   install -Dt $PKG/usr/bin $name-$version/target/release/$name
   21 }

Generated by cgit