zoxide: initial commit, version 0.8.1

This commit is contained in:
Tim Biermann 2022-05-22 22:39:37 +02:00
parent 596a4e588c
commit 85a1f84cf7
3 changed files with 29 additions and 0 deletions

3
zoxide/.footprint Normal file
View File

@ -0,0 +1,3 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/zoxide

5
zoxide/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF33n9wwKjSkLx8iY2vl13oFzbs3KGH9mmi2bZ7bK1q+2+Hd4RDmuecB5L5inVxl3Udiy0yQIohtKs/NlsHvGvlAo=
SHA256 (Pkgfile) = 75d31b015abe6ae54c77c7a5986a17a0084812dd49a1de8200e1cea179de9b29
SHA256 (.footprint) = c70da349a0e2283dc4aefffce8b0fae805a97a164fbdd56c1ee2d42826bff019
SHA256 (zoxide-0.8.1.tar.gz) = 55f4bf374421f842f5541d95db14d7a63f5d24e269613fb95f769f00cdb9ffc3

21
zoxide/Pkgfile Normal file
View File

@ -0,0 +1,21 @@
# Description: A smarter cd command. Supports all major shells.
# URL: https://github.com/ajeetdsouza/zoxide
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust
name=zoxide
version=0.8.1
release=2
source=(https://github.com/ajeetdsouza/zoxide/archive/v$version/$name-$version.tar.gz)
build() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
cargo build --release --manifest-path $name-$version/Cargo.toml
prt-get isinst bash-completion && install -vDm644 $name-$version/contrib/completions/zoxide.bash $PKG/usr/share/bash-completion/completions/zoxide
prt-get isinst zsh && install -vDm644 -t $PKG/usr/share/zsh/site-functions $name-$version/contrib/completions/_zoxide
install -Dt $PKG/usr/bin $name-$version/target/release/$name
}