new bblfs: app-shells/zoxide-0.9.8
This commit is contained in:
31
app-shells/zoxide-0.9.8.PKGBUILD
Normal file
31
app-shells/zoxide-0.9.8.PKGBUILD
Normal file
@@ -0,0 +1,31 @@
|
||||
pkgname=zoxide
|
||||
pkgver=0.9.8
|
||||
pkgdesc="A smarter cd command for your terminal"
|
||||
homepage="https://github.com/ajeetdsouza/zoxide"
|
||||
license=("MIT")
|
||||
bdepends=("cargo")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/ajeetdsouza/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("44173287c9893d2de248a21d82bf5322302b69659ff87153f248a310529f06083b9ca98d6dc30df4ea574de2139ec127f7bed076d51085164c9742ea7462028c")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
cargo build --frozen --release --all-features
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -vDm755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
|
||||
|
||||
install -vDm644 -t "$pkgdir/usr/share/man/man1/" man/man1/*.1
|
||||
|
||||
cd contrib/completions
|
||||
install -vDm644 -t "$pkgdir/usr/share/zsh/site-functions/" _zoxide
|
||||
install -vDm644 -t "$pkgdir/usr/share/fish/vendor_completions.d/" zoxide.fish
|
||||
install -vDm644 zoxide.bash "$pkgdir/usr/share/bash-completion/completions/zoxide"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user