diff options
author | Luis Martinez | 2022-06-19 10:51:16 -0500 |
---|---|---|
committer | Luis Martinez | 2022-06-19 10:51:16 -0500 |
commit | e65f33afc0e291172eeb0abc4796040f75ac84b3 (patch) | |
tree | 59bf0a8b3c2cce83910af571a13e78ed82dee4b3 /PKGBUILD | |
parent | 7c0d8f939a9f73267ec78608610084cb676d599a (diff) | |
download | aur-zoxide-git.tar.gz |
package cleanup
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -2,7 +2,7 @@ # Credit: desbma pkgname=zoxide-git -pkgver=0.8.0.r6.gb6b024c +pkgver=0.8.1.r9.gc7400cf pkgrel=1 pkgdesc='A fast cd command that learns your habits' arch=('x86_64' 'armv7h' 'aarch64') @@ -10,7 +10,7 @@ url="https://github.com/ajeetdsouza/zoxide" license=('MIT') depends=('gcc-libs') makedepends=('cargo' 'git') -provides=("${pkgname%-git}") +provides=("${pkgname%-git}=${pkgver%.r*}") conflicts=("${pkgname%-git}") source=("$pkgname::git+$url") sha512sums=('SKIP') @@ -30,6 +30,9 @@ build() { export CARGO_TARGET_DIR=target cd "$pkgname" cargo build --release --frozen --all-features + ./target/release/zoxide init bash > zoxide.bash + ./target/release/zoxide init zsh > _zoxide + ./target/release/zoxide init fish > zoxide.fish } package() { @@ -37,7 +40,7 @@ package() { install -D -t "$pkgdir/usr/bin" target/release/zoxide install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm644 man/man1/*.1 -t "$pkgdir/usr/share/man/man1/" - install -Dm644 contrib/completions/zoxide.bash "$pkgdir/usr/share/bash-completion/completions/zoxide" - install -Dm644 contrib/completions/_zoxide -t "$pkgdir/usr/share/zsh/site-completions/" - install -Dm644 contrib/completions/zoxide.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/" + install -Dm644 zoxide.bash "$pkgdir/usr/share/bash-completion/completions/zoxide" + install -Dm644 _zoxide -t "$pkgdir/usr/share/zsh/site-completions/" + install -Dm644 zoxide.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/" } |