aboutsummaryrefslogtreecommitdiffstats
path: root/community/hexyl/APKBUILD
blob: 63d92386fa8f5130dcfd1a4e05b732ce153746ca (plain)
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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=hexyl
pkgver=0.12.0
pkgrel=0
pkgdesc="Command-line hex viewer with colored output"
url="https://github.com/sharkdp/hexyl"
license="Apache-2.0 OR MIT"
arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/sharkdp/hexyl/archive/v$pkgver/hexyl-$pkgver.tar.gz"

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

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

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/hexyl -t "$pkgdir"/usr/bin/
}

sha512sums="
0a6d212f15e6078f0f553b8598ed96ae8e34a7ad1e7aafee2ba435111a18fbf1f265464d6e3a30bed551cc8387dc5da4f87221f10073258dcdb93c985e14b21d  hexyl-0.12.0.tar.gz
"