aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grcov/APKBUILD
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-08-06 11:18:45 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-08-08 08:19:20 +0000
commitc211a3dfd0a8601bd35dd4c94255627e5cae3a36 (patch)
treef55b63b9dcb91da4cebc06f7e7b731fb1e8f2194 /testing/grcov/APKBUILD
parent1d39c0d412ddc7a29ee752899830bacbca9a1ba2 (diff)
downloadaports-c211a3dfd0a8601bd35dd4c94255627e5cae3a36.tar.gz
aports-c211a3dfd0a8601bd35dd4c94255627e5cae3a36.tar.bz2
aports-c211a3dfd0a8601bd35dd4c94255627e5cae3a36.tar.xz
testing/grcov: new aport
https://github.com/eqrion/cbindgen Rust tool to collect and aggregate code coverage data
Diffstat (limited to 'testing/grcov/APKBUILD')
-rw-r--r--testing/grcov/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/grcov/APKBUILD b/testing/grcov/APKBUILD
new file mode 100644
index 0000000000..23539097f4
--- /dev/null
+++ b/testing/grcov/APKBUILD
@@ -0,0 +1,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"