delta: 0.8.0 -> 0.8.1

This commit is contained in:
Tim Biermann 2021-06-26 17:28:58 +00:00
parent d9cd38f0db
commit 421936fee0
2 changed files with 14 additions and 17 deletions

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF38gr9mLy+qWSKm2CkrWPy7E2Ei1z5XfH8w0xh1CBqx1DGUQMqCDrqzisMCG1gB8oXvaiizzEo+QrCMk7BYNwRQk=
SHA256 (Pkgfile) = d35c28548ee083ceead318548dfe4defbca5cf4773c2cbbc1c2695f6a8552702
RWSagIOpLGJF3xYM0+TeM4xUyEdg3FRgwau8KQwRszQucoz5kPlPYct6B29iAVuWGFb+G2xkXkJRPM9XmhBF4CK7rtdQaIZq1wM=
SHA256 (Pkgfile) = 8fdfec5051a319c0b585eea81469b1f565b0d07bb0014e62475b502f344e6fe6
SHA256 (.footprint) = e4db9cceee1c1464b8c8f43b6b2129519b473b85c04c71cd7d667d8960e41396
SHA256 (delta-0.8.0.tar.gz) = 706b55667de221b651b0d938dfbb468112b322ed41a634d3ca5c8bd861b19e8a
SHA256 (delta-0.8.1.tar.gz) = e478acf90c1125af0cfcb055c1e2b358080d192fbf83cf5ddfa40241830ab826

@ -4,28 +4,25 @@
# Depends on: rust
name=delta
version=0.8.0
version=0.8.1
release=1
source=(https://github.com/dandavison/delta/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
cargo update
cargo fetch
cargo build --release --locked
install -Dt $PKG/usr/bin target/release/delta
cargo update --manifest-path $name-$version/Cargo.toml
cargo build --release --locked --manifest-path $name-$version/Cargo.toml
install -Dt $PKG/usr/bin $name-$version/target/release/$name
# install auto-completion files if the ports for it are installed
if [ -e /usr/share/zsh ]; then
install -Dm644 etc/completion/completion.zsh \
$PKG/usr/share/zsh/site-functions/_delta
fi
if [ -e /usr/lib/pkgconfig/bash-completion.pc ]; then
install -Dm644 etc/completion/completion.bash \
$PKG/usr/share/bash-completion/completions/delta
fi
prt-get isinst zsh &&
install -Dm644 $name-$version/etc/completion/completion.zsh \
$PKG/usr/share/zsh/site-functions/_delta || true
prt-get isinst bash-completion &&
install -Dm644 $name-$version/etc/completion/completion.bash \
$PKG/usr/share/bash-completion/completions/delta || true
}