aboutsummaryrefslogtreecommitdiffstats
path: root/testing/htmlq/APKBUILD
blob: e2a7e6ad64785815bfbde18ba2b011931d53cb61 (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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=htmlq
pkgver=0.4.0
pkgrel=0
pkgdesc="Like jq, but for HTML"
url="https://github.com/mgdm/htmlq"
license="MIT"
arch="all !s390x !riscv64" # blocked by rust/cargo
options="!check" # no test suite
makedepends="cargo"
source="https://github.com/mgdm/htmlq/archive/v$pkgver/htmlq-$pkgver.tar.gz"

export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"

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

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

sha512sums="
3cbb53b66ca894b17c95487fe33a11587449af1b0acd5fa9e804b046e15fdd50a997b5367d0b00c20dce2587cfdf9d15b75cdd97007082928228a53b2f12fde7  htmlq-0.4.0.tar.gz
"