aboutsummaryrefslogtreecommitdiffstats
path: root/community/zoxide/APKBUILD
blob: 1dd0d8cf5a332c707db4db870676a130a2e3f838 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=zoxide
pkgver=0.5.0
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
	remove-pwsh-xonsh.patch
	minimize-size.patch
	exclude-shellcheck-test.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="7944666d0670dbfa12befaf4cd261a5fe99c5fc520d5db09635407165b82552874caa1f2d32ee03ec9c5bab74dcc0ddcc271a09f5c03ef6019f9cd59f1c6f846  zoxide-0.5.0.tar.gz
721d3422456b3e53d9b601f094264f43471d0c256ee66f1fdbece4b3c7d6cfeb1fc24d9e4aa19d0236be5ad5fa48dc2d66db8208eba3e7cab5b8438c50e4094b  remove-pwsh-xonsh.patch
f094784e84f3b11987b224f23f8820514be5da826a09d26fec423967b0572cb9dfea77a81b0d7a09c0dfd0ff56efebc344a2ab238912b3c9caaa681d9d793204  minimize-size.patch
db857a72c04c5eedcc04f7fd6e19de26f80b22943075f91b04c562ead22ef6888220ae2d0dd51374fed3a609f52571c30c2ea87b8cf0108e372fd68c5424d7da  exclude-shellcheck-test.patch"