1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
7 pkgdesc='A smarter cd command for your terminal'
9 url='https://github.com/ajeetdsouza/zoxide'
12 makedepends=('git' 'rust')
14 'fzf: for interactive selection'
17 _commit='686d116ad54635d0ea86b69b7a00238ebc0a8bbb'
18 source=("$pkgname::git+$url.git#commit=$_commit")
24 git describe --tags | sed 's/^v//'
30 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
36 cargo build --frozen --release --all-features
43 install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
46 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
49 install -vDm644 -t "$pkgdir/usr/share/man/man1" man/man1/*.1
52 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
54 # shell auto-completions
55 cd contrib/completions
56 install -vDm644 -t "$pkgdir/usr/share/zsh/site-functions" _zoxide
57 install -vDm644 -t "$pkgdir/usr/share/fish/vendor_completions.d" zoxide.fish
58 install -vDm644 zoxide.bash "$pkgdir/usr/share/bash-completion/completions/zoxide"