mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-10 14:24:06 +02:00
49 lines
1.3 KiB
Text
49 lines
1.3 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=zoxide
|
|
pkgver=0.9.7
|
|
pkgrel=0
|
|
pkgdesc="Faster way to navigate your filesystem"
|
|
url="https://github.com/ajeetdsouza/zoxide"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="cargo cargo-auditable"
|
|
checkdepends="dash bash fish shfmt zsh"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/ajeetdsouza/zoxide/archive/v$pkgver/zoxide-$pkgver.tar.gz"
|
|
|
|
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/zoxide -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 man/man1/*.1 -t "$pkgdir"/usr/share/man/man1/
|
|
|
|
cd contrib/completions
|
|
install -Dm644 zoxide.bash "$pkgdir"/usr/share/bash-completion/completions/zoxide
|
|
install -Dm644 zoxide.fish -t "$pkgdir"/usr/share/fish/vendor_completions.d/
|
|
install -Dm644 _zoxide -t "$pkgdir"/usr/share/zsh/site-functions/
|
|
}
|
|
|
|
sha512sums="
|
|
e1b8634600342002f6e1d1f52eaf98978e44b1b47b7161979c3756e33968912c1aace09451242925b1195273c5e52d6dc97150af971e6806086d4d8efddc5a57 zoxide-0.9.7.tar.gz
|
|
"
|