aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grcov/APKBUILD
blob: 23539097f4e1ef4041ae4adb2af696c83b1d932f (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=grcov
pkgver=0.5.15
pkgrel=0
pkgdesc="Rust tool to collect and aggregate code coverage data"
url="https://github.com/eqrion/cbindgen"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # Limited by cargo
license="MPL-2.0"
depends="gcc" # gcov
makedepends="cargo"
options="!check" # Failing due to utf-8 (locale?)
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/grcov/archive/v$pkgver.tar.gz"

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

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

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

sha512sums="84e1ad6a9658590a52595fae38955931f359efc1f25931f6953934784b1c58ad9d27da057130dbe3dc09908589d79aa5b4cb4a7b4aae425b627487c4bf9af240  grcov-0.5.15.tar.gz"