summaryrefslogtreecommitdiff
path: root/delta/Pkgfile
blob: 7872d80c0132d513e3f09b59995df5e8eef57104 (plain)
    1 # Description: A viewer for git and diff output
    2 # URL: https://github.com/dandavison/delta
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: rust
    5 
    6 name=delta
    7 version=0.9.2
    8 release=1
    9 source=(https://github.com/dandavison/delta/archive/$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 build --release --locked --manifest-path $name-$version/Cargo.toml
   18 
   19   install -Dt $PKG/usr/bin $name-$version/target/release/$name
   20 
   21   # install auto-completion files if the ports for it are installed
   22   prt-get isinst zsh &&
   23     install -Dm644 $name-$version/etc/completion/completion.zsh \
   24       $PKG/usr/share/zsh/site-functions/_delta || true
   25   prt-get isinst bash-completion &&
   26     install -Dm644 $name-$version/etc/completion/completion.bash \
   27       $PKG/usr/share/bash-completion/completions/delta || true
   28 }

Generated by cgit