aboutsummaryrefslogtreecommitdiffstats
path: root/community/zoxide/APKBUILD
blob: 767c55b5ba56c65a6ae3ba9b1e699fae3a97df9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=zoxide
pkgver=0.7.2
pkgrel=0
pkgdesc="A faster way to navigate your filesystem"
url="https://github.com/ajeetdsouza/zoxide"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le"  # limited by rust/cargo
license="MIT"
makedepends="cargo"
checkdepends="dash bash fish shfmt zsh"
source="https://github.com/ajeetdsouza/zoxide/archive/v$pkgver/zoxide-$pkgver.tar.gz
	minimize-size.patch
	exclude-shellcheck-test.patch
	remove-pwsh-xonsh.patch
	"
builddir="$srcdir/zoxide-$pkgver"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	cargo install --locked --path . --root="$pkgdir/usr"
	rm "$pkgdir"/usr/.crates*
}

sha512sums="
f8d34156e14bc40e535423309c4692c6c14eafcbfda38f43589695edcc33ad0b3d4f0bbc2f677c3b5b89debdacb4465f5e654e69ef9548b74b8b1d79f0b9966c  zoxide-0.7.2.tar.gz
f094784e84f3b11987b224f23f8820514be5da826a09d26fec423967b0572cb9dfea77a81b0d7a09c0dfd0ff56efebc344a2ab238912b3c9caaa681d9d793204  minimize-size.patch
8b4430d93510c312db029e5abed18181c723b4db851db78acb26e171a961b51000cb65777043a54788a090bcf679acb841387bf07e05e41b992f306f06b9c812  exclude-shellcheck-test.patch
775f69d7b3644ee8730d089c6690cf6db034af02a330f2ab40e63d13e5c52e33b23aa365a9815584969d315e0429ca0efde536789cb01d14a64869f954ff12c1  remove-pwsh-xonsh.patch
"